-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (128 loc) · 3.46 KB
/
pyproject.toml
File metadata and controls
150 lines (128 loc) · 3.46 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[project]
name = "blackvuesync"
version = "2.2.0a4"
description = "Synchronize recordings from BlackVue dashcams to a local directory"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = ["blackvue", "dashcam", "sync", "backup"]
authors = [
{name = "Alessandro Colomba", email = "acolomba@colomba.org"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Topic :: System :: Archiving :: Backup",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = []
[project.scripts]
blackvuesync = "blackvuesync:main"
[project.optional-dependencies]
# development dependencies
dev = [
"behave~=1.2",
"black~=25.11",
"Flask~=3.1",
"mypy~=1.14",
"pre-commit~=4.3",
"PyHamcrest~=2.1",
"pylint~=3.3",
"pytest~=8.3",
"pytest-cov~=7.0",
"python-lsp-server~=1.14",
"requests~=2.32",
"ruff~=0.9",
"testcontainers~=4.13",
"tzlocal~=5.2",
]
[project.urls]
Homepage = "https://github.com/acolomba/blackvuesync"
Repository = "https://github.com/acolomba/blackvuesync"
Issues = "https://github.com/acolomba/blackvuesync/issues"
[build-system]
requires = ["setuptools>=58.0.4"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
py-modules = ["blackvuesync"]
[tool.black]
line-length = 88
target-version = ["py39"]
[tool.ruff]
target-version = "py39"
line-length = 88
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"RET", # flake8-return
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"I", # isort
"N", # pep8-naming
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by black/ruff-format)
"UP007", # use X | Y for type annotations (not compatible with Python 3.9)
]
[tool.mypy]
python_version = "3.9"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
exclude = ["venv/", "build/", "dist/"]
# ignores third-party packages without type stubs
[[tool.mypy.overrides]]
module = ["requests", "hamcrest", "testcontainers.*", "tzlocal"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "blackvuesync_test"
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = "_pytest.*"
follow_imports = "skip"
[[tool.mypy.overrides]]
module = "features.steps.*"
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = "features.mock_dashcam.*"
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = "features.mock_dashcam.server"
warn_return_any = false
[tool.coverage.run]
# uses parallel mode to create separate coverage files that can be combined
parallel = true
source = ["."]
# excludes test and mock code from coverage collection
omit = [
"test/*",
"features/*",
]
[tool.coverage.report]
# excludes test and mock code from coverage reports
omit = [
"test/*",
"features/*",
]
[tool.coverage.html]
directory = "coverage_report"
[tool.pylint.messages_control]
disable = [
"line-too-long", # handled by black/ruff
]
[tool.pylint.design]
max-module-lines = 1200 # single-file project by design
[tool.pylint.format]
max-line-length = 88 # for consistency with black/ruff