-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
81 lines (70 loc) · 2.01 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
[project]
name = "rdap"
version = "1.6.0"
description = "Registration Data Access Protocol tools"
authors = [{ name = "20C", email = "[email protected]" }]
readme = "README.md"
license = "Apache-2.0"
requires-python = ">= 3.8"
repository = "https://github.com/20c/rdap"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"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",
"Topic :: Internet",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"googlemaps >= 4",
"munge[yaml] >= 1",
"phonenumbers >= 8",
"pydantic >= 2",
"requests >= 2",
"setuptools>=75.1.0",
]
[project.scripts]
rdap = "rdap.cli:main"
[project.plugins."markdown.extensions"]
pymdgen = "pymdgen.md:Extension"
[project.optional-dependencies]
dev = [
"coverage >= 7",
"pytest >= 8",
"pytest-filedata >= 1",
"pytest-cov >= 5",
"tox >= 4",
"tox-gh-actions >= 3",
"tox-uv>=1.13.0",
"bandit >= 1",
"mypy >= 1",
"pre-commit >= 3",
"ruff >= 0",
# docs
"markdown >= 3",
"markdown-include >= 0",
"mkdocs >= 1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
select = [
"I", # isort
"UP",
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
# at least this three should be fine in tests:
"S101", # asserts allowed in tests...
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant...
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
# The below are debateable
"PLR2004", # Magic value used in comparison, ...
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]