Update the kickoff pyproject.toml file for ruff and numpy updates

This commit is contained in:
Gerard Vermeulen 2024-06-16 17:27:04 +02:00
parent 7c96b2e2be
commit d0c0942d1d

View File

@ -4966,6 +4966,8 @@ profile = "black"
[tool.ruff] [tool.ruff]
line-length = 88 line-length = 88
[tool.ruff.lint]
select = [ select = [
"ARG", # flake8-unused-arguments "ARG", # flake8-unused-arguments
"B", # flake8-bugbear "B", # flake8-bugbear
@ -4976,16 +4978,17 @@ select = [
"F", # pyflakes "F", # pyflakes
"UP", # pyupgrade "UP", # pyupgrade
"W", # pycodestyle "W", # pycodestyle
"NPY201", # numpy-2.0 upgrade guide
] ]
ignore = [ ignore = [
"B905", # `zip()` without an explicit `strict=` parameter "B905", # `zip()` without an explicit `strict=` parameter
"D202", # no blank lines allowed after function docstring "D202", # no blank lines allowed after function docstring
] ]
[tool.ruff.mccabe] [tool.ruff.lint.mccabe]
max-complexity = 15 max-complexity = 15
[tool.ruff.pydocstyle] [tool.ruff.lint.pydocstyle]
convention = "numpy" convention = "numpy"
# Local Variables: # Local Variables: