-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
153 lines (141 loc) · 3.49 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[build-system]
requires = ["setuptools>=69"]
build-backend = "setuptools.build_meta"
[project]
name = "cf-ips-to-hcloud-fw"
authors = [{ name = "Jürgen Kreileder" }, { email = "[email protected]" }]
description = "Update Hetzner Cloud firewall rules with Cloudflare IP ranges"
keywords = ["cloudflare", "hcloud", "hetzner", "firewall", "cli"]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.9"
dynamic = ["version", "dependencies", "optional-dependencies"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet",
"Topic :: System :: Networking :: Firewalls",
"Topic :: Utilities",
]
[project.scripts]
cf-ips-to-hcloud-fw = "cf_ips_to_hcloud_fw.__main__:main"
[project.urls]
Homepage = "https://github.com/jkreileder/cf-ips-to-hcloud-fw"
Source = "https://github.com/jkreileder/cf-ips-to-hcloud-fw"
Changelog = "https://github.com/jkreileder/cf-ips-to-hcloud-fw/blob/main/CHANGELOG.md"
Documentation = "https://github.com/jkreileder/cf-ips-to-hcloud-fw"
Issues = "https://github.com/jkreileder/cf-ips-to-hcloud-fw/issues"
Twitter = "https://twitter/jkreileder"
Bluesky = "https://bsky.app/profile/jk.blackdown.de"
PyPI = "https://pypi.org/project/cf-ips-to-hcloud-fw/"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = { attr = "cf_ips_to_hcloud_fw.__VERSION__" }
dependencies = { file = ["requirements-pep508.txt"] }
optional-dependencies.dev = { file = ["requirements-dev-pep508.txt"] }
[tool.pytest.ini_options]
pythonpath = ["src", "tests"]
junit_family = "xunit1" # required by https://github.com/EnricoMi/publish-unit-test-result-action
addopts = """
--junit-xml=test-results.xml
--cov=src
--cov-branch
--cov-report=xml
--cov-report=html
--cov-report=term-missing
--cov-fail-under=80
"""
[tool.pyright]
include = ["src", "tests"]
strict = ["src", "tests"]
reportMissingImports = true
reportMissingTypeStubs = true
venv = "venv"
[tool.ruff]
src = ["src"]
preview = true
[tool.ruff.lint]
extend-select = [
"A",
"ANN",
"ARG",
"B",
"BLE",
"C4",
"C90",
"COM",
"E",
"EM",
"ERA001",
"EXE",
"F",
"FA",
"FBT",
"FLY",
"FURB",
"I",
"ICN",
"ISC",
"LOG",
"N",
"PERF",
"PIE",
"PGH",
"PL",
"PT",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"T20",
"TID",
"TRY",
"UP",
"W",
]
ignore = [
"COM812",
"COM819",
"E111",
"E114",
"E117",
"D206",
"D300",
"LOG015",
"Q000",
"Q001",
"Q002",
"Q003",
"ISC001",
"ISC002",
"W191",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "SLF001"]
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
[tool.pip-tools]
generate-hashes = false
newline = "LF"
quiet = true
strip-extras = false
upgrade = true