forked from cantools/cantools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
109 lines (97 loc) · 2.25 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", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "cantools"
authors = [
]
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",
"crccheck",
]
dynamic = ["version"]
[tool.setuptools_scm]
# can be empty if no extra settings are needed, presence enables setuptools_scm
[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/cantools/cantools"
documentation = "https://cantools.readthedocs.io/"
repository = "https://github.com/cantools/cantools"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
cantools = ["py.typed"]
[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.lint]
select = [
"A", # flake8-builtins
"B", # pyflakes-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle Error
"F", # pyflakes
"FURB", # refurb
"I", # isort
"RUF", # Ruff-specific rules
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle Warning
]
ignore = [
"E501", # line too long
"F541", # f-string-missing-placeholders
"RUF012", # mutable-class-default
]
[tool.ruff.lint.isort]
known-first-party = ["cantools"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]