From 4f1a5fb4caa2e118136392b741d184fe7c06e681 Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs Date: Wed, 1 Nov 2023 23:30:11 +0100 Subject: [PATCH] feat: configure tools - isort - black - flake8 - check-manifest --- .flake8 | 13 +++++++++++++ pyproject.toml | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..e8429c6 --- /dev/null +++ b/.flake8 @@ -0,0 +1,13 @@ +[flake8] +doctests = 1 +ignore = + # black takes care of line length + E501, + # black takes care of where to break lines + W503, + # black takes care of spaces within slicing (list[:]) + E203, + # black takes care of spaces after commas + E231, + # as one has to use self.XX it should not be a problem + A003, diff --git a/pyproject.toml b/pyproject.toml index 4cce79c..bb8986f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,3 +44,16 @@ test = ["pytest"] [project.entry-points."flake8.extension"] A00 = "flake8_builtins:BuiltinsChecker" + +[tool.isort] +profile = "plone" + +[tool.black] +target-version = ["py38"] +skip-string-normalization = true + +[tool.check-manifest] +ignore = [ + ".vscode/*", + "venv/*", +]