/
pyproject.toml
68 lines (58 loc) · 1.44 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
[build-system]
requires = ["poetry"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "packtype"
version = "2.0.0"
description = "Packed data structure specifications for multi-language hardware projects"
authors = ["Peter Birch <peter@intuity.io>"]
license = "Apache-2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
click = "^8.1.7"
Mako = "^1.3.0"
rich = "^13.7.0"
ruff = "^0.1.7"
black = "^23.11.0"
typing-extensions = "^4.8.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-runner = "^6.0.1"
pytest-cov = "^4.1.0"
pytest-mock = "^3.12.0"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
norecursedirs = ["resources"]
addopts = [
"--cov=packtype",
"--cov-branch",
"--cov-report=html",
"--cov-report=term",
"-x",
"--import-mode=importlib",
]
[tool.poe.tasks]
lint = ["black", "ruff"]
[tool.poe.tasks.test]
shell = "poetry run pytest"
[tool.poe.tasks.ruff]
shell = "poetry run ruff check packtype --fix"
[tool.poe.tasks.black]
shell = "poetry run black ."
[tool.black]
line-length = 88
target-version = ["py311"]
include = '\.pyi?$'
[tool.ruff]
# See https://beta.ruff.rs/docs/rules
select = ["E", "F", "B", "UP", "N", "W", "I", "A", "C4", "PTH", "RUF"]
ignore = [
"RUF012" # Mutable class attributes should be annotated with `typing.ClassVar`
]
fixable = ["ALL"]
unfixable = []
target-version = "py311"
# Character length of 88 is compatible with Black
line-length = 88