-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
108 lines (96 loc) · 2.36 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
[tool]
[tool.poetry]
name = "binapy"
version = "0.8.0"
homepage = "https://github.com/guillp/binapy"
description = "Binary Data manipulation, for humans."
authors = ["Guillaume Pujol <[email protected]>"]
readme = "README.md"
license = "MIT"
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'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',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
packages = [
{ include = "binapy" },
{ include = "tests", format = "sdist" },
]
[tool.poetry.dependencies]
python = ">=3.8"
typing-extensions = ">=4.3.0"
[tool.poetry.dev-dependencies]
coverage = ">=7.6.1"
livereload = ">=2.7.0"
mypy = ">=1.11.1"
mkdocs = ">=1.6.0"
mkdocs-autorefs = ">=1.0.1"
mkdocs-material = ">=9.5.31"
mkdocs-material-extensions = ">=1.3.1"
mkdocstrings = { version = ">=0.25.2", extras = ["python"] }
pre-commit = ">=3.5.0"
pytest = ">=8.3.2"
pytest-mypy = ">=0.9.1"
pytest-cov = ">=5.0.0"
ruff = ">=0.5.6"
toml = ">=0.10.2"
tox = ">=4.16.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.docformatter]
recursive = true
wrap-summaries = 120
wrap-descriptions = 120
blank = true
[tool.mypy]
strict = true
implicit_reexport = true
pretty = true
show_error_context = true
show_column_numbers = true
show_error_codes = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
[tool.ruff]
target-version = "py38"
line-length = 120
exclude = [
"tests"
]
[tool.ruff.lint]
select = [
"ALL"
]
ignore = [
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`
"PLR2004", # Magic value used in comparison
"D402", # First line should not be the function's signature
"ISC001",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
ignore-decorators = ['override']
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"def main",
"...",
"assert False",
"pytest.skip",
"pass",
]