diff --git a/.flake8 b/.flake8 index 0daf1543..4bbce879 100644 --- a/.flake8 +++ b/.flake8 @@ -2,3 +2,10 @@ max-line-length = 120 exclude = .git,__pycache__,.tox,.eggs,*.egg,node_modules,.venv,migrations,docs,demo,tests,setup.py import-order-style = pep8 + +[pycodestyle] +max-line-length = 120 +exclude = "migrations" +in-place = true +recursive = true + diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 23add7ee..8ed8cf34 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -20,6 +20,10 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt -r requirements-testing.txt -c constraints-Django32.txt + - name: Format style check with 'autopep8' + run: | + pip install autopep8 + autopep8 --exit-code --global-config .flake8 helpdesk # - name: Lint with flake8 # run: | # pip install flake8