-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
pyproject.toml
158 lines (142 loc) · 3.27 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
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
151
152
153
154
155
156
157
158
[tool.poetry]
name = "pya2ldb"
version = "0.13.6"
description = "A2L for Python"
authors = ["Christoph Schueler <[email protected]>"]
license = "GPLv2"
readme = "README.md"
homepage = "https://github.com/christoph2/pyA2L"
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
build = "build_ext.py"
include = [
{ path = "pya2l/*.so", format = "wheel" },
{ path = "pya2l/*.pyd", format = "wheel" },
]
packages = [
{ include = "pya2l" }
]
# package_data={"": "CMakeLists.txt"}
[tool.poetry.dependencies]
python = "^3.9"
chardet = "^5.2.0"
Mako = "^1.3.5"
SQLAlchemy = "^2.0.30"
numpy = "^2.1.3"
scipy = "^1.13.1"
rich = "^13.7.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.2"
pre-commit = "^3.7.1"
bandit = "^1.7.8"
ruff = "^0.4.8"
isort = "^5.13.2"
flake8 = "^7.0.0"
black = "^24.4.2"
flake8-bugbear = "^24.4.26"
pre-commit-hooks = "^4.6.0"
pyupgrade = "^3.16.0"
[build-system]
requires = ["poetry-core>=1.6.0", "wheel", "cmake>=3.12", "pybind11[global]>=2.12.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
a2ldb-imex = "pya2l.scripts.a2ldb_imex:main"
[tool.pytest]
addopts = "--verbose --tb=short --junitxml=result.xml -o junit_family=xunit2"
testpaths = "pya2l/tests"
[tool.flake8]
ignore = ["D203", "E203", "E266", "E501", "W503", "F403", "F401", "BLK100"]
exclude = '''
/(
\.git
| __pycache__
| \.mypy_cache
| \.tox
| \.venv
| \.eggs
| _build
| build
| __pypackages__
| docs
| dist
| experimental
| pya2l/a2lLexer.py
| pya2l/amlLexer.py
| pya2l/amlParser.py
| pya2l/a2llg.py
| pya2l/a2lParser.py
)/
'''
max-complexity = 10
count = true
statistics = true
show-source = true
max-line-length = 132
select = ["B","C","E","F","W","T4","B9"]
[tool.black]
line-length=132
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| \.venv
| _build
| __pypackages__
| build
| docs
| experimental
| __pycache__
| pya2l/a2lLexer.py
| pya2l/amlLexer.py
| pya2l/amlParser.py
| pya2l/a2llg.py
| pya2l/a2lParser.py
| dist
)/
'''
[tool.isort]
profile = "black"
force_single_line = false
lines_after_imports = 2
[tool.mypy]
strict = false
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_context = true
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
"PGH", # pygrep-hooks
"RUF", # Ruff-specific
"UP", # pyupgrade
]
ignore = ["I001"]
unfixable = ["B"]
[tool.bandit]
exclude_dirs = [".venv", "tests"]
skips = ["B307", "B404", "B605", "B607", "B603"]
[tool.cibuildwheel]
build-verbosity = 3
build = "cp3{8,9,10,11,12,13}-*"
#test-command = "pytest -svv"
build-frontend = "build"
#build-frontend = "pip"
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64"]
before-build = "yum install -y libffi openssl openssl-devel python3-dev libpython3-dev"