From 1b81c5e324e1649c5e25c373633b317ed1889ed2 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Fri, 21 Jul 2023 22:30:38 +0200 Subject: [PATCH] configure flake for black --- .github/workflows/pythonpackage.yml | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 3351f5e..57831c6 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -33,7 +33,7 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E,F,W --show-source --statistics + flake8 . --count --select=E,F --exclude --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with tox diff --git a/setup.cfg b/setup.cfg index 96c029c..4d663ec 100644 --- a/setup.cfg +++ b/setup.cfg @@ -69,4 +69,5 @@ with-doctest=1 [flake8] exclude = .git,.tox,.github,.eggs,__pycache__,doc/conf.py,build,dist,capabilities-data,test,src/escpos/constants.py max-line-length = 120 +extend-ignore = E203, W503 # future-imports = absolute_import, division, print_function, unicode_literals # we are not there yet