From 93e4f7f1184a0274c051b9496448291adfb18c09 Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Mon, 11 Sep 2023 22:32:46 +0200 Subject: [PATCH] Move pytest and isort config to pyproject.toml Sadly flake8 doesn't support pyproject.toml. We could consider moving to ruff. --- pyproject.toml | 10 ++++++++++ setup.cfg | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 422838a..da042b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,3 +23,13 @@ test = [ "mypy == 1.5.1", "isort ~= 5.10.1", ] + +[tool.isort] +line_length = 120 +multi_line_output = 5 +balanced_wrapping = false +known_typing = typing +sections = FUTURE,STDLIB,TYPING,THIRDPARTY,FIRSTPARTY,LOCALFOLDER + +[tool.pytest.ini_options] +addopts = --doctest-modules diff --git a/setup.cfg b/setup.cfg index a2536f5..c182f9a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,12 +1,2 @@ [flake8] ignore = E201,E241,E501,W504,E741 - -[isort] -line_length = 120 -multi_line_output = 5 -balanced_wrapping = False -known_typing = typing -sections = FUTURE,STDLIB,TYPING,THIRDPARTY,FIRSTPARTY,LOCALFOLDER - -[tool:pytest] -addopts = --doctest-modules