diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 341c902..75ad521 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -32,7 +32,7 @@ jobs: # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --max-complexity=10 --max-line-length=127 --statistics + flake8 . --count --ignore=E402,E226,E24,W50,W690 --max-complexity=20 --max-line-length=127 --statistics - name: Test with unittest if: ${{ always() }} timeout-minutes: 10 diff --git a/dev/pre-commit b/dev/pre-commit index 3e5a081..2d5669e 100644 --- a/dev/pre-commit +++ b/dev/pre-commit @@ -4,17 +4,15 @@ from __future__ import with_statement, print_function import os import re -import shutil import subprocess import sys -import tempfile #See for codes https://pypi.org/project/autopep8/ #features # don't fill in both of these select_codes = [] ignore_codes = ["E402","E226","E24","W50","W690"] #"E121", "E122", "E123", "E124", "E125", "E126", "E127", "E128", "E129", "E131", "E501"] # Add things like "--max-line-length=120" below -overrides = ["--max-line-length=120"] +overrides = ["--max-line-length=127"] def system(*args, **kwargs):