Skip to content
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

Autopep8 Python code for style fixes #1668

Merged
merged 2 commits into from
Jun 27, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adding default configs and momentarily disabling hook.
  • Loading branch information
tellarin committed Jun 27, 2019
commit ff1525a1f3c396f2d2c2c359c83ef0413dc1e9a9
3 changes: 3 additions & 0 deletions Python/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
ignore=E501,F403,W504,F405,F401,E711,W503,E265,F811,E714,F841,E226,E713,F632,E722,F821
max-line-length=140
10 changes: 5 additions & 5 deletions Python/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ repos:
rev: v1.2.3
hooks:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-autopep8
rev: master
hooks:
- id: autopep8
#
#- repo: https://github.com/pre-commit/mirrors-autopep8
# rev: master
# hooks:
# - id: autopep8
3 changes: 3 additions & 0 deletions Python/build.ci.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ pip install -e .\libraries\recognizers-sequence\

pip install -e .\libraries\recognizers-suite\

ECHO # Validating PEP8 style
call flake8 . --config=.\.flake8

pip install -r .\tests\requirements.txt

pytest --tb=line
Expand Down
2 changes: 1 addition & 1 deletion Python/pycodestyle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pycodestyle]
max_line_length = 120
max_line_length = 140
ignore = E501