-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (86 loc) · 2.63 KB
/
pyproject.toml
File metadata and controls
92 lines (86 loc) · 2.63 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
[project]
name = "rdap"
version = "1.7.0"
description = "Registration Data Access Protocol tools"
authors = [{ name = "20C", email = "code@20c.com" }]
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10,<4.0"
keywords = ["rdap", "whois", "arin", "ripe", "apnic", "lacnic", "afrinic"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"googlemaps >= 4",
"munge[yaml] >= 1",
"phonenumbers >= 8",
"pydantic >= 2",
"requests >= 2",
]
[project.urls]
Homepage = "https://github.com/20c/rdap"
Repository = "https://github.com/20c/rdap"
Issues = "https://github.com/20c/rdap/issues"
[project.scripts]
rdap = "rdap.cli:main"
[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.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"UP", # pyupgrade
"I", # isort
"B", # flake8-bugbear
"S", # flake8-bandit
"C4", # flake8-comprehensions
"RET", # flake8-return
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"B019", # lru_cache on methods - existing design pattern
"B039", # mutable default in ContextVar - required for backward compatibility
"B904", # raise from - would break compatibility
"E501", # line too long - mostly in comments/tests
"RUF013", # implicit Optional - existing code style
]
[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
]