Skip to content

Commit

Permalink
pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
CagtayFabry committed Jun 4, 2024
1 parent d347f30 commit 28c6592
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,75 +91,6 @@ where = [
write_to = "weldx/_version.py"
write_to_template = '__version__ = "{version}"'

[tool.ruff]
target-version = "py39" # designated Python version
line-length = 88
exclude = [
"__init__.py",
"doc/src/conf.py",
]

lint.select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
#"D", # note: all relevant D's will be set by setting pydocstyle.convention=numpy!
"E", # pycodestyles
"F", # pyflakes
"I001", # isort
"ICN", # import conventions, e.g. import numpy as np
#"B950", # not yet implemented by Ruff.
"RUF100", # ensure 'noqa' declarations are still valid.
"T2", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warnings
]
# TODO: should be the following list, but Ruff does not yet impl all of them.
# W503,W504
# E203
# C408
lint.ignore = [
"C408",
#"W503",
#"W504",
"D203",
"D211",
"D213",
#"E203",
"E402",
"UP006",
"UP007", # see ruff GH#4427
]
# Allow prints in certain areas.
lint.per-file-ignores = [
"T2",
]
lint.external = [
"B950",
]
lint.flake8-import-conventions.extend-aliases = { xarray = "xr" }
lint.isort.known-first-party = [
"weldx",
]
lint.isort.required-imports = [
"from __future__ import annotations",
]
lint.mccabe.max-complexity = 15 # max branches inside a function.
lint.pydocstyle.convention = "numpy"
# Allow pydocstyle violations in certain areas.
lint.per-file-ignores = [
"D",
]
lint.per-file-ignores = [
"D",
]
lint.per-file-ignores = [
"D",
]
lint.per-file-ignores = [
"E501", # ignore long lines.
"RUF100", # do no check if 'noqa' is needed (circular import workaround)
]

[tool.nbqa.addopts]
ruff = [
"--extend-ignore=B018",
Expand Down

0 comments on commit 28c6592

Please sign in to comment.