From 8776e5a631ea18bd4e7ebc4eb23526167fc7b410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Gr=C3=BCter?= Date: Sun, 5 Nov 2023 02:01:11 +0100 Subject: [PATCH] Configure flake8 to exclude pycache, venv, dist, ... --- .flake8 | 8 ++++++++ poetry.lock | 17 +---------------- pyproject.toml | 4 ---- 3 files changed, 9 insertions(+), 20 deletions(-) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..00251a8 --- /dev/null +++ b/.flake8 @@ -0,0 +1,8 @@ +[flake8] +max-line-length = 88 +exclude = + .git, + .venv, + __pycache__, + .pytest_cache, + dist \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 13f65a6..07d9a0e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1215,21 +1215,6 @@ tomlkit = ">=0.10.1" spelling = ["pyenchant (>=3.2,<4.0)"] testutils = ["gitpython (>3)"] -[[package]] -name = "pyproject-flake8" -version = "6.1.0" -description = "pyproject-flake8 (`pflake8`), a monkey patching wrapper to connect flake8 with pyproject.toml configuration" -category = "dev" -optional = false -python-versions = ">=3.8.1" -files = [ - {file = "pyproject_flake8-6.1.0-py3-none-any.whl", hash = "sha256:86ea5559263c098e1aa4f866776aa2cf45362fd91a576b9fd8fbbbb55db12c4e"}, - {file = "pyproject_flake8-6.1.0.tar.gz", hash = "sha256:6da8e5a264395e0148bc11844c6fb50546f1fac83ac9210f7328664135f9e70f"}, -] - -[package.dependencies] -flake8 = "6.1.0" - [[package]] name = "pytest" version = "7.4.2" @@ -1846,4 +1831,4 @@ ifaddr = ">=0.1.7" [metadata] lock-version = "2.0" python-versions = ">=3.11,<4.0" -content-hash = "1477b46e7a6057b97a4726bf6eaaf1cad89cebee39f26272fc2556fe4b4a894e" +content-hash = "bd971907a2978b135d1831eb2a971412c39346f632d33a906db59b587c921596" diff --git a/pyproject.toml b/pyproject.toml index c4275ed..0484113 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,6 @@ black = "^23.9.1" pylint = "^3.0.1" flake8 = "^6.1.0" ipykernel = "^6.25.2" -pyproject-flake8 = "^6.1.0" bandit = "^1.7.5" safety = "^2.3.5" @@ -36,9 +35,6 @@ build-backend = "poetry.core.masonry.api" [tool.black] line-length = 88 -[tool.flake8] -max-line-length = 88 - [tool.isort] profile = "black" skip_gitignore = true