Skip to content

Commit

Permalink
Update pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
CagtayFabry authored Apr 2, 2024
1 parent b2959e3 commit e72270b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ module = "xarray"
follow_imports = "skip"
ignore_errors = true

[tool.ruff]
[tool.ruff.lint]
target-version = "py38" # designated Python version
exclude = [
"__init__.py",
Expand Down Expand Up @@ -218,15 +218,18 @@ per-file-ignores."doc/src/conf.py" = ["E501", # ignore long lines.
per-file-ignores."**/{cli,tests,tutorials,devtools}/**/*{.py,ipynb}" = ["T2"]

external = ["B950"]
pydocstyle = {convention = "numpy"}

mccabe = {max-complexity = 15} # max branches inside a function.
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.ruff.isort]
[tool.ruff.lint.mccabe]
max-complexity = 15 # max branches inside a function.

[tool.ruff.lint.isort]
known-first-party = ["weldx"]
required-imports = ["from __future__ import annotations"]

[tool.ruff.flake8-import-conventions]
[tool.ruff.lint.flake8-import-conventions]
extend-aliases = {xarray = "xr"}

[tool.nbqa.addopts]
Expand Down

0 comments on commit e72270b

Please sign in to comment.