-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
89 lines (78 loc) · 1.8 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
[tool.poetry]
name = "smp"
version = "0"
description = "Simple Management Protocol (SMP) for remotely managing MCU firmware"
authors = [
"J.P. Hutchins <[email protected]>",
"J.P. Hutchins <[email protected]>",
]
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/JPHutchins/smp"
documentation = "https://jphutchins.github.io/smp/"
packages = [{ include = "smp" }]
[tool.poetry-version-plugin]
source = "git-tag"
[tool.poetry.dependencies]
python = ">=3.8.1, <3.14"
cbor2 = "^5.5.1"
crcmod = "^1.7"
pydantic = "^2.6"
eval-type-backport = { version = "^0.2.0", python = "<3.10" }
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
black = "^23.11.0"
flake8 = "^6.1.0"
isort = "^5.12.0"
mypy = "^1.7.0"
mypy-extensions = "^1.0.0"
pytest-xdist = "^3.4.0"
tox = "^4.15.0"
[tool.poetry.group.doc.dependencies]
mkdocstrings = { extras = ["python"], version = "^0.26.1" }
mkdocs-material = "^9.5.37"
mike = "^2.1.3"
[tool.black]
line-length = 100
skip-string-normalization = true
[tool.isort]
profile = "black"
line_length = 100
multi_line_output = 3
[tool.mypy]
disallow_untyped_defs = true
exclude = ['.venv']
[tool.pytest.ini_options]
filterwarnings = ["ignore:The --rsyncdir:DeprecationWarning"]
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4.15
env_list =
py38
py39
py310
py311
py312
py313
[testenv]
allowlist_externals =
poetry
black
isort
flake8
mypy
coverage
commands =
poetry install
black --check .
isort --check-only .
flake8 .
mypy .
coverage erase
pytest --cov --maxfail=3 -n auto
"""
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"