/
pyproject.toml
119 lines (108 loc) · 3.13 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
[tool.poetry]
name = "Peering Manager"
description = "BGP sessions management tool"
version = "1.9.0-dev"
authors = ["Guillaume Mazoyer <pm@mazoyer.eu>"]
readme = "README.md"
license = "Apache-2.0"
[tool.poetry.urls]
homepage = "https://peering-manager.net"
documentation = "https://docs.peering-manager.net"
repository = "https://github.com/peering-manager/peering-manager.git"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
Django = ">=5.0,<5.1"
djangorestframework = "~3.15"
django-debug-toolbar = "~4.3"
django-filter = "~24.2"
django-netfields = "~1.3"
django-prometheus = "~2.3"
django-redis = "~5.4"
django-rq = "~2.10"
django-tables2 = "~2.7"
django-taggit = "~5.0"
drf-spectacular = "~0.27"
drf-spectacular-sidecar = "^2024"
dulwich = "~0.21"
Jinja2 = "~3.1"
Markdown = "~3.5"
napalm = "~5.0"
packaging = "23.2"
psycopg = { version = "~3.1", extras = ["binary", "pool"] }
pyixapi = "^0.2"
pynetbox = "~7.3"
PyYAML = "~6.0"
requests = "~2.31"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pre-commit = "~3.5"
ruff = "~0.4"
coverage = { version = "~7.4", extras = ["toml"] }
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs-material = "*"
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
ignore = [
"C901", # Is too complex
"DJ001", # Avoid using `null=True` on string-based fields such as `CharField`
"E501", # Line too long
"F401", # Imported but unused; consider using `importlib.util.find_spec` to test for availability
"F403", # Unable to detect undefined names
"F405", # May be undefined, or defined from star imports
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
"PLR2004", # Magic value used in comparison, consider replacing with a constant variable
]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe complexity
"DJ", # flake8-django
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"EXE", # flake8-executable
"F", # pyflakes
"I", # isort-like checks
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"N", # pep8-naming
"PIE", # flake8-pie
"PL", # pylint
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"TCH", # flake8-type-checking
"TRIO", # flake8-trio
"T10", # flake8-debugger
"W", # pycodestyle warnings
]
[tool.ruff.lint.per-file-ignores]
"*/migrations/*" = ["B007", "N805", "N806", "N999"]
"peering_manager/configuration.example.py" = ["N999"]
"peering_manager/saml2_config.example.py" = ["N999"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.coverage.run]
branch = true
source = ["."]
omit = [
"manage.py",
"*/apps.py",
"*/migrations/*",
"peering_manager/asgi.py",
"peering_manager/wsgi.py",
"peering_manager/settings.py",
"peering_manager/configuration.*",
]