-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
60 lines (51 loc) · 1.75 KB
/
pyproject.toml
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
[tool.poetry]
package-mode = true
name = "spond-classes"
version = "0.13.0"
description = "Unofficial class abstraction layer for the `spond` library package."
license = "GPL-3.0-only"
authors = ["elliot-100 <[email protected]>"]
readme = "README.md"
repository = "https://github.com/elliot-100/Spond-classes"
documentation = "https://elliot-100.github.io/Spond-classes/"
packages = [{include = "spond_classes"}]
include = ["CHANGELOG.md"]
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
pydantic = ">=2.7.1"
[tool.poetry.group.dev.dependencies]
pdoc = "15.0.0"
pre-commit = "4.0.1"
ruff = "0.7.0"
[tool.poetry.group.test.dependencies]
mypy = "1.12.0"
pytest = "8.3.3"
[tool.mypy]
plugins = ["pydantic.mypy"]
enable_error_code = ["ignore-without-code"] # Require specific codes for ignores
warn_unused_configs = true
strict = true
disallow_any_unimported = true # Disallow Any types resulting from unfollowed imports
no_implicit_optional = true # Don't assume arguments with default values of None are Optional
[tool.ruff]
target-version = "py310" # Ruff doesn't respect Python dependency in [tool.poetry.dependencies]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# Rules that conflict with Ruff formatter:
"COM812", # Trailing comma missing
"ISC001", # Implicitly concatenated string literals on one line
# Other rules:
"D205", # 1 blank line required between summary line and description
]
[tool.ruff.lint.per-file-ignores]
# Rules that aren't relevant in tests:
"**/{tests}/*" = [
"S101", # Use of assert detected
"F841", # Local variable is assigned to but never used (triggered by testing raises)
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"