-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
124 lines (113 loc) · 2.79 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
# pyproject.toml
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "gotstate"
version = "1.0.3"
description = "A hierarchical finite state machine library"
readme = "README.md"
authors = [
{name = "Brad Edwards", email = "[email protected]"},
]
requires-python = ">=3.8"
license = {text = "MIT"}
keywords = ["state-machine", "hsm", "finite-state-machine", "hierarchical-state-machine"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"pydantic>=2.9.2",
"typing_extensions>=4.12.2"
]
[project.urls]
Homepage = "https://github.com/Brad-Edwards/gotstate"
Repository = "https://github.com/Brad-Edwards/gotstate"
Documentation = "https://github.com/Brad-Edwards/gotstate#readme"
Changelog = "https://github.com/Brad-Edwards/gotstate/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
where = ["."]
include = ["hsm*"]
exclude = ["tests*"]
[tool.black]
line-length = 120
target-version = ["py38", "py39", "py310"]
include = '\.pyi?$'
extend-exclude = '''
^/tests/fixtures
'''
[tool.isort]
profile = "black"
line_length = 120
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
skip = [
"tests/fixtures",
"__init__.py",
"setup.py",
".venv",
"venv",
"env",
"__pycache__",
"build",
"dist",
".eggs",
".tox",
".pytest_cache"
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q -v --cov=hsm --cov-report=term-missing:skip-covered --cov-report=html --cov-report=xml"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.coverage.run]
source = ["hsm"]
branch = true
omit = [
"tests/*",
"*/__init__.py",
"setup.py",
"*/.venv/*",
"*/venv/*",
"*/env/*",
"*/__pycache__/*",
"*/build/*",
"*/dist/*",
"*/.eggs/*",
"*/.tox/*",
"*/.pytest_cache/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
"def main\\(\\):",
"@abstract"
]
fail_under = 80
show_missing = true
skip_covered = false
[tool.coverage.html]
directory = "coverage-reports/html"
[tool.coverage.xml]
output = "coverage-reports/coverage.xml"
[tool.bandit]
exclude_dirs = ["tests/**"]
skips = ["B101"] # Skip assert warnings globally
targets = ["hsm"]