-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blackened code with Flake8 issues fixed and a few small typo bugfixes
- Loading branch information
Showing
173 changed files
with
7,433 additions
and
3,079 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version = 1 | ||
|
||
test_patterns = [ | ||
|
||
] | ||
|
||
exclude_patterns = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/lucasmbrown/mirrors-autoflake | ||
rev: v1.3 | ||
hooks: | ||
- id: autoflake | ||
args: | ||
[ | ||
'--in-place', | ||
'--remove-all-unused-imports', | ||
'--ignore-init-module-imports', | ||
'--remove-unused-variable', | ||
] | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v4.3.21 | ||
hooks: | ||
- id: isort | ||
additional_dependencies: | ||
- toml | ||
- repo: https://github.com/ambv/black | ||
rev: master | ||
hooks: | ||
- id: black | ||
language_version: python3.7 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-xml | ||
- id: fix-encoding-pragma | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.7.9 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- toml | ||
- flake8-assertive | ||
- flake8-blind-except | ||
- flake8-builtins | ||
- flake8-coding | ||
- flake8-comprehensions | ||
- flake8-isort | ||
- flake8-logging-format | ||
- flake8-mutable | ||
- flake8-print | ||
- pep8-naming | ||
- repo: https://github.com/prettier/prettier | ||
rev: master | ||
hooks: | ||
- id: prettier | ||
args: ['--single-quote', '--trailing-comma', 'es5'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
schedule: "every month" | ||
schedule: 'every month' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ ADD . /code/hasjob | |
WORKDIR /code/hasjob/ | ||
|
||
EXPOSE 5000 | ||
EXPOSE 5432 | ||
EXPOSE 5432 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
Get Twitter access key and secret. | ||
""" | ||
|
||
import tweepy | ||
from hasjob import app, init_for | ||
import tweepy | ||
|
||
init_for('dev') | ||
auth = tweepy.OAuthHandler(app.config['TWITTER_CONSUMER_KEY'], app.config['TWITTER_CONSUMER_SECRET']) | ||
auth = tweepy.OAuthHandler( | ||
app.config['TWITTER_CONSUMER_KEY'], app.config['TWITTER_CONSUMER_SECRET'] | ||
) | ||
auth_url = auth.get_authorization_url() | ||
print('Please authorize: ' + auth_url) | ||
print("Please authorize: " + auth_url) # NOQA: T001 | ||
verifier = input('PIN: ').strip() | ||
auth.get_access_token(verifier) | ||
print("TWITTER_ACCESS_KEY = '%s'" % auth.access_token.key) | ||
print("TWITTER_ACCESS_SECRET = '%s'" % auth.access_token.secret) | ||
print("TWITTER_ACCESS_KEY = '%s'" % auth.access_token.key) # NOQA: T001 | ||
print("TWITTER_ACCESS_SECRET = '%s'" % auth.access_token.secret) # NOQA: T001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# -*- coding: utf-8 -*- | ||
__all__ = ['__version__', '__version_info__'] | ||
|
||
__version__ = '0.3.0' | ||
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')]) | ||
__version_info__ = tuple( | ||
int(num) if num.isdigit() else num | ||
for num in __version__.replace('-', '.', 1).split('.') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"presets": ["es2015"] | ||
} | ||
} |
Oops, something went wrong.