From 53ed8f83f66e8c07ca696f408f9bf156a384862b Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Tue, 23 Dec 2025 07:22:46 +1300 Subject: [PATCH 1/2] Migrate away from `setup.cfg` (fixes #292) The flake8 config is superseded by Ruff. --- pyproject.toml | 3 +++ setup.cfg | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 4a50f731..1800e981 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,6 +67,9 @@ benchmark_ci = [ "pytest-codspeed>=4.2.0", ] +[tool.pytest.ini_options] +xfail_strict = true + [tool.setuptools] include-package-data = true zip-safe = false diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index dec2c85e..00000000 --- a/setup.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[flake8] -extend-ignore = E731, E203 -max-line-length = 100 -exclude = */migrations/*, tests/assets/* - -[tool:pytest] -xfail_strict=true \ No newline at end of file From 20027199efd5ce592f3517253ff4ddf1afcef065 Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Tue, 23 Dec 2025 07:23:29 +1300 Subject: [PATCH 2/2] Remove unused `setuptools` config. Maturin is the build backend now, so the old `setuptools` config has no effect. --- pyproject.toml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1800e981..1d3dc49e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,14 +69,3 @@ benchmark_ci = [ [tool.pytest.ini_options] xfail_strict = true - -[tool.setuptools] -include-package-data = true -zip-safe = false - -[tool.setuptools.package-data] -grimp = ["py.typed"] - -[tool.setuptools.packages.find] -where = ["src"] -namespaces = false