From 4b8331de14446266e0038308e6efbb1bc45312c6 Mon Sep 17 00:00:00 2001 From: Dantali0n <info@dantalion.nl> Date: Fri, 7 Jul 2023 08:05:55 +0200 Subject: [PATCH] Configure linters through pyproject.toml --- {{cookiecutter.project_slug}}/pyproject.toml | 13 +++++++++++++ .../tests/requirements.txt | 1 + 2 files changed, 14 insertions(+) diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index e137d16..05f2bca 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -46,3 +46,16 @@ archs = ["AMD64", "x86"] [tool.pylint] ignore = "_version.py" + +[tool.flake8] +max-line-length = 88 +extend-ignore = ["E203"] +exclude = ["_version.py"] + +[tool.black] +line-length = 88 +extend-exclude = ''' +( + _version.py +) +''' diff --git a/{{cookiecutter.project_slug}}/tests/requirements.txt b/{{cookiecutter.project_slug}}/tests/requirements.txt index f14d0b9..82f1ee8 100644 --- a/{{cookiecutter.project_slug}}/tests/requirements.txt +++ b/{{cookiecutter.project_slug}}/tests/requirements.txt @@ -2,6 +2,7 @@ autopep8 >= 1.7.0 # MIT black >= 22.0.0 # MIT build >= 0.8.0 # MIT flake8 >= 5.0.0 # MIT +pyproject-flake8 >= 5.0.4 # Unlicense pylint >= 2.15.0 # GPLv2 pytest >= 7.0.0 # MIT pytest-cov >= 3.0.0 # MIT -- GitLab