forked from opendatahub-io/data-processing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
32 lines (28 loc) · 894 Bytes
/
pyproject.toml
File metadata and controls
32 lines (28 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[tool.ruff]
line-length = 88
target-version = "py312"
# Exclude generated files, virtualenvs, and other non-source paths
extend-exclude = [
".ipynb_checkpoints",
".venv",
"venv",
]
# Lint rules to enable:
# E pycodestyle
# F pyflakes
# I import sorting (isort-compatible)
# B flake8-bugbear (common bug patterns)
# W warnings
# UP pyupgrade (modernize syntax)
lint.select = ["E","F","I","B","W","UP"]
# Rules to ignore:
# E203 whitespace before ':' (Black-compatible)
# E501 line length (Black handles line wrapping)
# UP006 keep typing.List instead of converting to list (PEP 585)
# UP007 keep typing.Dict instead of converting to dict (PEP 585)
# UP035 keep typing.Optional instead of converting to | None (PEP 604)
lint.ignore = ["E203","E501","UP006","UP007","UP035"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = ["--tb=short", "-v"]