From 51162c0124b8a286cda0e04058dd724b09126fef Mon Sep 17 00:00:00 2001 From: Vitaliy Mysak Date: Wed, 13 Mar 2024 15:26:21 -0700 Subject: [PATCH] Move .flake8 out of pyproject.toml --- .flake8 | 8 ++++++++ pyproject.toml | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..c3be181 --- /dev/null +++ b/.flake8 @@ -0,0 +1,8 @@ +[flake8] +# Below are the error codes to ignore: +# E302: expected N blank lines, found Y +# E303: too many blank lines +# E711: comparison to None should be 'if cond is None:' +# E701: multiple statements on one line +ignore = E302,E303,E711,E701 +max-line-length = 120 diff --git a/pyproject.toml b/pyproject.toml index 58856d9..4ebf160 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,6 @@ test = [ dev = [ # Dependencies required for development (linting, type checking, etc.) "flake8", - "flake8-pyproject", "mypy==1.9.0", "types-requests", ] @@ -58,11 +57,3 @@ warn_return_any = true warn_unused_ignores = true disallow_untyped_defs = false strict = true - -[tool.flake8] -ignore = ["E302", # expected N blank lines, found Y - "E303", # too many blank lines - "E711", # comparison to None should be 'if cond is None:' - "E701", # multiple statements on one line - ] -max-line-length = 120