Skip to content

Commit

Permalink
replace deprecated references in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbeedy committed Feb 7, 2024
1 parent 473db4c commit bdf01a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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]
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -38,4 +37,4 @@ deps =
commands =
codespell {[vars]all_path} {toxinidir}/README.md
ruff {[vars]all_path}
black --check --diff {[vars]all_path}
black --check --diff {[vars]all_path}

0 comments on commit bdf01a6

Please sign in to comment.