forked from cantools/cantools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
109 lines (96 loc) · 2.16 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
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "cantools"
authors = [
{name = "Erik Moqvist", email = "[email protected]"},
]
description = "CAN BUS tools."
readme = "README.rst"
requires-python = ">=3.8"
keywords = [
"can",
"can bus",
"arxml",
"dbc",
"kcd",
"automotive",
]
license = { text = "MIT" }
classifiers = [
"License :: OSI Approved :: MIT License",
]
dependencies = [
"bitstruct>=8.16.1",
"python-can>=3.3.4",
"textparser>=0.21.1",
"diskcache",
"argparse_addons",
"typing_extensions>=3.10.0.0",
"crccheck",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"mypy",
"pipx",
"ruff",
"tox",
]
plot = ["matplotlib"]
windows-all = [
"windows-curses;platform_system=='Windows' and platform_python_implementation=='CPython'"
]
[project.scripts]
cantools = "cantools.__init__:_main"
[project.urls]
homepage = "https://github.com/eerimoq/cantools"
documentation = "https://cantools.readthedocs.io/"
repository = "https://github.com/eerimoq/cantools"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
cantools = ["py.typed"]
[tool.setuptools.dynamic]
version = {attr = "cantools.version.__version__"}
[tool.mypy]
show_error_codes = true
warn_return_any = true
warn_unused_configs = true
no_implicit_optional = true
disallow_incomplete_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
exclude = "^(?!src).*$"
[[tool.mypy.overrides]]
module = [
"argparse_addons",
"diskcache",
"textparser",
"bitstruct",
"bitstruct.c",
"matplotlib",
]
ignore_missing_imports = true
[tool.ruff]
select = [
"E", # pycodestyle Error
"W", # pycodestyle Warning
"F", # pyflakes
"B", # pyflakes-bugbear
"UP", # pyupgrade
"C4", # flake8-comprehensions
"I", # isort
]
ignore = [
"E501", # line too long
"F541", # f-string-missing-placeholders
"C413", # Unnecessary `reversed` call around `sorted()`
]
# Assume Python 3.8.
target-version = "py38"
[tool.ruff.isort]
known-first-party = ["cantools"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]