-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* .pep8 -> setup.cfg * Ignore W191 for styling rules * Add flake8 rules same as pep8 * Use setup.cfg instead of .pep8 as configuration
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 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,4 +1,4 @@ | ||
#!/bin/bash | ||
find . -iname '*.py' -exec autopep8 --global-config .pep8 --aggressive -i "{}" \; | ||
find . -iname '*.py' -exec autopep8 --global-config setup.cfg --aggressive -i "{}" \; | ||
find . -iname '*.py' -exec autoflake --in-place --remove-all-unused-imports --remove-unused-variables "{}" \; | ||
find . -iname '*.py' -exec sed -i 's/ /\t/g' "{}" \; |
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,7 @@ | ||
[pep8] | ||
ignore = W191,E226,E302,E41 | ||
max-line-length = 160 | ||
|
||
[flake8] | ||
ignore = W191,E226,E302,E41 | ||
max-line-length = 160 |