From 0dbc40e99a6f6cfa568f139902f07d297ce49ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=84=B1=EB=AF=BC=EC=9A=B0?= Date: Sun, 27 Aug 2023 00:49:01 +0900 Subject: [PATCH] add compatibility options for black and flake8 --- .flake8 | 1 + {{cookiecutter.project_slug}}/.pre-commit-config.yaml | 1 + {{cookiecutter.project_slug}}/setup.cfg | 1 + 3 files changed, 3 insertions(+) diff --git a/.flake8 b/.flake8 index 84b4b4411..3a87b269b 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,4 @@ [flake8] exclude = docs max-line-length = 119 +extend-ignore = E203 diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 0b68f4e2b..a11296b30 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -50,6 +50,7 @@ repos: rev: 6.1.0 hooks: - id: flake8 + args: [ '--config=setup.cfg' ] - repo: https://github.com/Riverside-Healthcare/djLint rev: v1.32.1 diff --git a/{{cookiecutter.project_slug}}/setup.cfg b/{{cookiecutter.project_slug}}/setup.cfg index 829064213..2412f1746 100644 --- a/{{cookiecutter.project_slug}}/setup.cfg +++ b/{{cookiecutter.project_slug}}/setup.cfg @@ -4,6 +4,7 @@ [flake8] max-line-length = 119 exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv,.venv +extend-ignore = E203 [pycodestyle] max-line-length = 119