-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (110 loc) · 2.72 KB
/
pyproject.toml
File metadata and controls
125 lines (110 loc) · 2.72 KB
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "schwifty"
dynamic = ["version"]
description = "IBAN parsing and validation"
readme = "README.rst"
license = "MIT"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Office/Business :: Financial",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.10"
authors = [
{ name = "Martin Domke", email = "mail@martindomke.net" },
]
dependencies = [
"importlib_resources>=5.10; python_version <= '3.11'",
"typing-extensions>=4.0.1; python_version <= '3.10'",
"pycountry",
"rstr",
]
[project.optional-dependencies]
pydantic = [
"pydantic>=2.0"
]
[project.urls]
Changelog = "https://github.com/mdomke/schwifty/blob/main/CHANGELOG.rst"
Documentation = "https://schwifty.readthedocs.io/en/latest/"
Homepage = "http://github.com/mdomke/schwifty"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = [
"schwifty",
]
[tool.pytest]
minversion = "9.0"
addopts = [
"--pyargs", "schwifty",
"--doctest-modules",
"--junit-xml", "test-results.xml",
]
console_output_style = "progress"
doctest_optionflags = ["ALLOW_UNICODE", "IGNORE_EXCEPTION_DETAIL"]
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
extend-select = ["A", "B", "C", "C4", "E", "F", "I", "N", "PT", "Q", "RUF", "S", "SIM", "T10", "UP", "W", "YTT"]
extend-fixable = ["RUF100", "I001"]
extend-ignore = [
"S101", # Allow usage of asserts
"A001", # Allow shadowing bultins
"A003", # Allow shadowing bultins on classes
]
[tool.ruff.lint.per-file-ignores]
"scripts/get_*_registry*.py" = [
"S113", # Allow requests call without timeout
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.isort]
force-single-line = true
lines-after-imports = 2
order-by-type = false
[tool.coverage.run]
branch = true
parallel = true
source = ["schwifty"]
omit = [
"schwifty/checksum/netherlands.py"
]
[tool.doc8]
max-line-length = 100
[tool.mypy]
exclude = ["docs"]
[dependency-groups]
dev = [
"coverage==7.13.*",
"freezegun==1.5.*",
"pytest==9.0.*",
"ruff==0.15.*",
"mypy==1.19.*",
]
doc = [
"doc8==2.0.*",
"pygments==2.16.*",
]
scripts = [
"beautifulsoup4",
"boltons",
"camelot-py",
"requests",
"xlrd>=2.0.1",
"pandas",
"openpyxl",
"lxml",
]