Skip to content

Commit

Permalink
Small styling changes (#294)
Browse files Browse the repository at this point in the history
* .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
eXhumer authored Apr 13, 2021
1 parent 11758ef commit cdc830c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .pep8

This file was deleted.

2 changes: 1 addition & 1 deletion autoformat
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' "{}" \;
7 changes: 7 additions & 0 deletions setup.cfg
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

0 comments on commit cdc830c

Please sign in to comment.