From 759104ea91632a11bc1e93a6b78af40cbb47b39d Mon Sep 17 00:00:00 2001 From: kedhammar Date: Mon, 21 Oct 2024 14:16:10 +0200 Subject: [PATCH] introduce pyproject.toml for ci tool settings --- pyproject.toml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..8a625b82c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,25 @@ +# === LINTING ================================================================ + +[tool.ruff.lint] +select = [ + # Ruff default rules + # ------------------------------ + "E4", # pycodestyle Imports + "E7", # pycodestyle Statements + "E9", # pycodestyle Runtime + "F", # Pyflakes + + # Additional Comment + # ------------------------------------------------------ + "I", # isort Best-practice sorting of imports + "UP", # pyupgrade Make sure syntax is up-to-date +] +ignore = [ + "E402", # Module level import not at top of file + "E722", # Do not use bare 'except' + "E741", # Ambiguous variable name +] + +[tool.mypy] +ignore_missing_imports = true +follow_imports = 'skip' \ No newline at end of file