-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (67 loc) · 1.99 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (67 loc) · 1.99 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[project]
name = "barrier"
version = "0.1.0"
description = "Barrier"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"numpy>=2.4.2",
]
[dependency-groups]
dev = [
"hypothesis>=6.151.9",
"mypy>=1.19.1",
"pytest>=9.0.2",
"ruff>=0.15.4",
]
[tool.ruff]
target-version = "py313"
line-length = 120
lint.select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"RUF", # Ruff-specific rules
"N", # pep8-naming — catches camelCase in Python code
"PT", # flake8-pytest-style — enforces pytest best practices
"TCH", # flake8-type-checking — moves type-only imports to TYPE_CHECKING
"ANN", # flake8-annotations — enforces type annotations
"S", # flake8-bandit — security checks (relevant for any API key handling)
"PGH", # pygrep-hooks — catches `type: ignore` without specifics and `typing.Any` used where a more specific type exists
]
lint.ignore = []
fix = true
exclude = [
".bzr", ".direnv", ".eggs", ".git", ".hg", ".mypy_cache",
".nox", ".pants.d", ".ruff_cache", ".svn", ".tox",
".venv", "__pypackages__", "_build", "buck-out",
"build", "dist", "node_modules", "venv"
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
known-first-party = ["barrier"]
[tool.mypy]
python_version = "3.13"
strict = true
warn_return_any = true
warn_unused_ignores = true
warn_override = true
plugins = ["numpy.typing.mypy_plugin"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short --cov=barrier --cov-report=term-missing"
minversion = "7.0"