-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix #482 * apply black codestyle * modify flake8 settings to be compatible with Black * change job name to be less ambiguous * integrate black into ci as a step reather than a standalone job and add it to the dev deps * Update .flake8 Use better formatting of necessary changes to comply with Black codestyle Co-authored-by: Yaacov Zamir <[email protected]> * add W508 to ignored rules * fix typo * fix yet another typo... --------- Co-authored-by: Yaacov Zamir <[email protected]>
- Loading branch information
Showing
48 changed files
with
827 additions
and
655 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,3 +1,8 @@ | ||
[flake8] | ||
show_source = True | ||
statistics = True | ||
|
||
# E501: line to long. | ||
# E203: whitespace before ':' to accept black code style | ||
# W503: line break before binary operator | ||
ignore = E501,E203,W503 |
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 |
---|---|---|
|
@@ -9,4 +9,5 @@ install: | |
|
||
script: | ||
- flake8 | ||
- black | ||
- pytest --check-links --ignore=docs/course_materials/reveal |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ name = "pypi" | |
|
||
[dev-packages] | ||
|
||
black = "*" | ||
flake8 = "*" | ||
pytest = "*" | ||
pytest-coverage = "*" | ||
|
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
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
11 changes: 5 additions & 6 deletions
11
docs/course_materials/exercises/09_Extra/class_exercise_1_solution.py
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
4 changes: 2 additions & 2 deletions
4
docs/course_materials/exercises/test_exercises/01_Linux/check_class_exercise_1.py
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,5 +1,5 @@ | ||
exercise_commands = ['mkdir', 'tree'] | ||
exercise_commands = ["mkdir", "tree"] | ||
|
||
exercise_paths = ['test', 'test/tmp'] | ||
exercise_paths = ["test", "test/tmp"] | ||
|
||
exercise_deleted_paths = [] |
4 changes: 2 additions & 2 deletions
4
docs/course_materials/exercises/test_exercises/01_Linux/check_class_exercise_2.1.py
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,5 +1,5 @@ | ||
exercise_commands = ['vim', 'cp'] | ||
exercise_commands = ["vim", "cp"] | ||
|
||
exercise_paths = ['roses.txt'] | ||
exercise_paths = ["roses.txt"] | ||
|
||
exercise_deleted_paths = [] |
Oops, something went wrong.