-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
131 lines (108 loc) · 2.88 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
[tool.poetry]
name = "biip"
version = "3.5.0"
description = "Biip interprets the data in barcodes."
authors = ["Stein Magnus Jodal <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/jodal/biip"
repository = "https://github.com/jodal/biip"
documentation = "https://biip.readthedocs.io"
keywords = ["barcodes", "ean", "isbn", "gs1", "gtin", "upc"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
]
[tool.poetry.dependencies]
python = "^3.9.0"
py-moneyed = { version = ">=0.8", optional = true }
[tool.poetry.extras]
money = ["py-moneyed"]
[tool.poetry.group.darglint.dependencies]
darglint = "^1.8.1"
[tool.poetry.group.dev.dependencies]
beautifulsoup4 = "^4.12.2"
httpx = "^0.27.0"
nox = ">=2023.4.22,<2025.0.0"
py-moneyed = "^3.0"
types-beautifulsoup4 = "^4.12.0.6"
[tool.poetry.group.docs.dependencies]
sphinx = ">=7"
sphinx-rtd-theme = ">=2"
sphinx-autodoc-typehints = ">=2"
[tool.poetry.group.mypy.dependencies]
mypy = "1.13.0"
[tool.poetry.group.pyright.dependencies]
pyright = "1.1.389"
[tool.poetry.group.ruff.dependencies]
ruff = "0.7.3"
[tool.poetry.group.tests.dependencies]
coverage = { extras = ["toml"], version = "^7.3.2" }
pytest = "^8.0.1"
pytest-cov = ">=4.1,<7.0"
xdoctest = "^1.1.3"
[tool.coverage.paths]
source = ["src"]
[tool.coverage.run]
branch = true
source = ["biip"]
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
fail_under = 100
show_missing = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--xdoc"
filterwarnings = ["ignore:pygments is not installed.*:UserWarning"]
[tool.mypy]
no_implicit_optional = true
warn_return_any = true
warn_redundant_casts = true
warn_unused_configs = true
strict_equality = true
[[tool.mypy.overrides]]
module = "biip.*"
disallow_untyped_defs = true
[tool.pyright]
pythonVersion = "3.9"
venvPath = "."
venv = ".venv"
typeCheckingMode = "strict"
# Already covered by tests and careful import ordering:
reportImportCycles = false
# Already covered by flake8-self:
reportPrivateUsage = false
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"PLR2004", # magic-value-comparison
"S101", # assert
#
# These rules interfere with `ruff format`
"COM812", # missing-trailing-comma
"ISC001", # single-line-implicit-string-concatenation
]
[tool.ruff.lint.per-file-ignores]
"docs/*" = [
"INP001", # implicit-namespace-package
]
"scripts/*" = [
"INP001", # implicit-namespace-package
"T201", # print
]
"tests/*" = [
"D", # pydocstyle
"S101", # assert
]
[tool.ruff.lint.isort]
known-first-party = ["biip"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[build-system]
requires = ["poetry-core>=1.0"]
build-backend = "poetry.core.masonry.api"