-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
106 lines (91 loc) · 2.07 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.poetry]
authors = ["Ludeeus <ludeeus@ludeeus.dev>"]
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
]
exclude = ['**/__pycache__']
include = ["pytraccar", "pytraccar.*", "LICENCE.md"]
license = "MIT"
description = ""
maintainers = ["Ludeeus <ludeeus@ludeeus.dev>"]
name = "pytraccar"
readme = "README.md"
repository = "https://github.com/ludeeus/pytraccar"
version = "0"
[tool.poetry.dependencies]
python = "^3.13"
aiohttp = "^3.6"
[tool.poetry.dev-dependencies]
codespell = "2.3.0"
coverage = {version = "7.6.9", extras = ["toml"]}
mypy = "1.13.0"
pre-commit = "4.0.1"
pre-commit-hooks = "5.0.0"
pytest = "8.3.4"
pytest-asyncio = "0.25.0"
pytest-cov = "6.0.0"
ruff = "0.6.8"
safety = "3.2.13"
[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 = [
"ANN101",
"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