From bdf01a6752c6bbfb496de861c8046fb06df1daac Mon Sep 17 00:00:00 2001 From: jamesbeedy Date: Wed, 7 Feb 2024 15:57:03 +0000 Subject: [PATCH] replace deprecated references in pyproject.toml --- pyproject.toml | 10 +++++----- tox.ini | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 608f0b9..167470e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,8 +62,8 @@ target-version = ["py38"] # Linting tools configuration [tool.ruff] line-length = 99 -select = ["E", "W", "F", "C", "N", "D", "I001"] -extend-ignore = [ +lint.select = ["E", "W", "F", "C", "N", "D", "I001"] +lint.extend-ignore = [ "D203", "D204", "D213", @@ -77,11 +77,11 @@ extend-ignore = [ "D409", "D413", ] -ignore = ["E501", "D107"] +lint.ignore = ["E501", "D107"] extend-exclude = ["__pycache__", "*.egg_info", "__init__.py"] -per-file-ignores = {"tests/*" = ["D100","D101","D102","D103","D104"]} +lint.per-file-ignores = {"tests/*" = ["D100","D101","D102","D103","D104"]} -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 15 [build-system] diff --git a/tox.ini b/tox.ini index 7b938cd..5699358 100644 --- a/tox.ini +++ b/tox.ini @@ -8,8 +8,7 @@ envlist = fmt, lint [vars] src_path = {toxinidir}/src -tst_path = {toxinidir}/tests -all_path = {[vars]src_path} {[vars]tst_path} +all_path = {[vars]src_path} [testenv] basepython = python3 @@ -38,4 +37,4 @@ deps = commands = codespell {[vars]all_path} {toxinidir}/README.md ruff {[vars]all_path} - black --check --diff {[vars]all_path} \ No newline at end of file + black --check --diff {[vars]all_path}