-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
114 lines (97 loc) · 2.2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[project]
name = "pytraccar"
version = "0"
description = ""
dynamic = ["readme", "classifiers", "dependencies"]
readme = "README.md"
license = "MIT"
authors = [
{ name = "Ludeeus", email = "[email protected]" },
]
maintainers = [
{ name = "Ludeeus", email = "[email protected]" },
]
requires-python = ">=3.13"
[project.urls]
repository = "https://github.com/ludeeus/pytraccar"
"Bug tracker" = "https://github.com/ludeeus/pytraccar/issues"
[tool.poetry]
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[tool.poetry.dependencies]
python = "^3.13"
aiohttp = "^3.6"
[tool.poetry.group.dev.dependencies]
codespell = "2.4.1"
coverage = {version = "7.8.0", extras = ["toml"]}
mypy = "1.15.0"
pre-commit = "4.2.0"
pre-commit-hooks = "5.0.0"
pytest = "8.3.5"
pytest-asyncio = "0.26.0"
pytest-cov = "6.1.1"
ruff = "0.11.4"
safety = "3.3.0"
[tool.coverage.run]
source = ["pytraccar"]
[tool.coverage.report]
skip_covered = false
fail_under = 100
exclude_lines = [
"^\\s*if (False|TYPE_CHECKING):"
]
[tool.mypy]
platform = "linux"
python_version = "3.13"
# show error messages from unrelated files
follow_imports = "normal"
# suppress errors about unsatisfied imports
ignore_missing_imports = true
# be strict
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
[tool.pytest]
asyncio_mode = "strict"
[tool.ruff.lint]
ignore = [
"ANN401",
"BLE00",
"COM812",
"D203",
"D213",
"EM101",
"EM102",
"ISC001",
"N818",
"PLR0913",
"PLR2004",
"TRY301",
"TRY003",
"TRY401",
]
select = ["ALL"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.isort]
known-first-party = ["pytraccar"]
[tool.ruff.lint.mccabe]
max-complexity = 15