mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
New pep8 version added a warning W503 which we will ignore
This commit is contained in:
@@ -7,7 +7,7 @@ install:
|
|||||||
- pip install -q -r src/requirements.txt
|
- pip install -q -r src/requirements.txt
|
||||||
before_script:
|
before_script:
|
||||||
- cd src
|
- cd src
|
||||||
- flake8 --ignore=E123,E128,F403,F401,N802,C901 .
|
- flake8 --ignore=E123,E128,F403,F401,N802,C901,W503 .
|
||||||
- python manage.py check
|
- python manage.py check
|
||||||
- python manage.py validate
|
- python manage.py validate
|
||||||
script:
|
script:
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ to check for syntax, style and other errors. The ``flake8`` command by default i
|
|||||||
stricter than what we really enforce, but we do enforce that all commits produce no output
|
stricter than what we really enforce, but we do enforce that all commits produce no output
|
||||||
from::
|
from::
|
||||||
|
|
||||||
flake8 --ignore=E123,E128,F403,F401,N802 .
|
flake8 --ignore=E123,E128,F403,F401,N802,W503 .
|
||||||
|
|
||||||
It is therefore a good idea to put this command into your git hook ``.git/hooks/pre-commit``,
|
It is therefore a good idea to put this command into your git hook ``.git/hooks/pre-commit``,
|
||||||
for example::
|
for example::
|
||||||
@@ -81,7 +81,7 @@ for example::
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd $GIT_DIR/../src
|
cd $GIT_DIR/../src
|
||||||
source ../env/bin/activate
|
source ../env/bin/activate
|
||||||
flake8 --ignore=E123,E128,F403,F401,N802 .
|
flake8 --ignore=E123,E128,F403,F401,N802,W503 .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
ignore = E128,N802
|
ignore = E128,N802,W503
|
||||||
max-line-length = 160
|
max-line-length = 160
|
||||||
exclude = migrations,.ropeproject,static
|
exclude = migrations,.ropeproject,static
|
||||||
max-complexity = 16
|
max-complexity = 16
|
||||||
|
|||||||
Reference in New Issue
Block a user