From 58742b8cbab08953141b1c9247aa9fa798b41271 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Thu, 8 Apr 2021 21:25:58 +0100 Subject: [PATCH] Sync autopep8 and flake8 --- .github/workflows/test.yaml | 2 +- dev/pre-commit | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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):