Sync autopep8 and flake8

This commit is contained in:
Matthew Stratford 2021-04-08 21:25:58 +01:00
parent 1b38eeb7f3
commit 58742b8cba
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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):