Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
[build-system]
requires = ["setuptools>=62.3", "oldest-supported-numpy", "cython~=3.0", "raysect==0.8.1.*"]
build-backend="setuptools.build_meta"

[tool.ruff]
line-length = 120
include = ["cherab/**/*.py", "demos/**/*.py"]

[tool.ruff.lint]
select = [
"E", # pycodestyle
"B", # flake8-bugbear
"F", # pyflakes
"I", # isort (import order)
"N", # pep8-naming
"W", # Warning
"UP", # pyupgrade
"NPY", # numpy specific rules
"D", # pydocstyle
"DOC", # pydoclint
]
preview = true
ignore = [
# Recommended ignores by ruff when using formatter
"E501", # line too long
"N803", # argument name should be lowercase
"N806", # variable in function should be lowercase
"D107", # missing docstring in __init__
"F401", # ignore unused imports
]

[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.cython-lint]
max-line-length = 140