-
Notifications
You must be signed in to change notification settings - Fork 147
reformat codebase using python/black #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7086f7f
reformat codebase using python/black
06a7958
black -l 80
ceb4b59
run black --check
63846f3
mention coding style
0e41691
just use black without options
0f2e8e7
run black only on py3
d71c839
use yaml merge key to define a few special steps for py3
4a005eb
lists cannot be merged ... my YAML foo is weak :-(
30723e3
maybe conditions do the trick
4fceac1
bad old copy & paste
7e5599e
define a new job, only for style checks
c9a13e2
fix typo; add link to black editor integration
8d226e3
merge setup.py
8d3a59b
blacken setup.py
bc02625
remove accidentally added test_script
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,32 +1,45 @@ | ||
| version: 2.0 | ||
|
|
||
| my-steps: &steps | ||
| build_and_test: &build_and_test_steps | ||
| - checkout | ||
| - run: sudo pip install -r requirements.txt | ||
| - run: sudo pip install flake8 pytest | ||
| - run: sudo pip install pytest | ||
| - run: python --version ; pip --version ; pwd ; ls -l | ||
| # stop the build if there are Python syntax errors or undefined names | ||
| - run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics | ||
| # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
| - run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
| #- run: pytest # test_s2gs test_replays | ||
| - run: python -m unittest discover test_s2gs | ||
| - run: python -m unittest discover test_replays | ||
|
|
||
|
|
||
| jobs: | ||
| StyleCheck: | ||
| docker: | ||
| - image: circleci/python:3.7 | ||
| steps: | ||
| - checkout | ||
| - run: sudo pip install flake8 black | ||
| - run: python --version ; pip --version ; pwd ; ls -l | ||
| # stop the build if there are Python syntax errors or undefined names | ||
| - run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics | ||
| # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
| - run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
| - run: black . --check | ||
|
|
||
|
|
||
| Python2: | ||
| docker: | ||
| - image: circleci/python:2.7.15 | ||
| steps: *steps | ||
| steps: *build_and_test_steps | ||
|
|
||
| Python3: | ||
| docker: | ||
| - image: circleci/python:3.7 | ||
| steps: *steps | ||
| steps: *build_and_test_steps | ||
|
|
||
|
|
||
| workflows: | ||
| version: 2 | ||
| build: | ||
| jobs: | ||
| - StyleCheck | ||
| - Python2 | ||
| - Python3 |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plug ins for many editors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also "plugins" is a single word (no space).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - done