-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
80 lines (73 loc) · 1.23 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
[tool.poetry]
name = "netbox-lists"
version = "4.0.1"
description = ""
authors = ["Devon Mar <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
netaddr = ">=0.8 | ^1.0"
[tool.poetry.dev-dependencies]
pytest = "^8.3"
pynetbox = "^7"
requests = "^2"
mypy = "^1.15"
ruff = "^0.9"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[mypy]
plugins = ["mypy_django_plugin.main"]
disallow_any_generics = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"rest_framework.*",
"taggit.*",
"django_filters",
"netaddr.*",
# NetBox
"dcim.*",
"ipam.*",
"extras.*",
"virtualization.*",
]
ignore_missing_imports = true
[tool.ruff.lint]
select = [
"C4",
"E",
"EXE",
"F",
"I",
"ISC",
"PERF",
"PIE",
"PYI",
"UP",
"W",
]
ignore = [
"E501",
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
]