-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
153 lines (122 loc) · 2.97 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
[tool.poetry]
name = "fasjson"
version = "1.6.0"
description = "fasjson makes it possible for applications to talk to the fedora account system."
license = "MIT"
authors = [
"Fedora Infrastructure <[email protected]>"
]
readme = 'README.md'
repository = "https://github.com/fedora-infra/fasjson"
homepage = "https://github.com/fedora-infra/fasjson"
[tool.poetry.dependencies]
python = "^3.9.0"
Flask = "^2.2.0 || ^3.0.0"
python-ldap = "^3.2.0"
dnspython = "^2.1.0"
flask-restx = "^1.2.0"
flask-healthz = "^0.0.3 || ^1.0.0"
python-freeipa = "^1.0.5"
requests-kerberos = ">=0.12.0, <1.0.0"
flask-mod-auth-gssapi = ">=0.2.0, <2.0.0"
requests-gssapi = "^1.2.3"
[tool.poetry.group.dev.dependencies]
flake8 = "*"
pytest = "*"
pytest-mock = "*"
pytest-cov = "*"
liccheck = "*"
bandit = "*"
black = "*"
isort = "*"
safety = "*"
pre-commit = "*"
towncrier = "*"
myst-parser = "*"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "S", "B", "RUF"]
ignore = ["RUF012"]
[tool.ruff.lint.isort]
lines-after-imports = 2
order-by-type = false
[tool.ruff.lint.per-file-ignores]
"fasjson/tests/*" = ["S101", "E501"]
"news/get-authors.py" = ["S602", "S603", "S607"]
[tool.coverage.run]
branch = true
source = ["fasjson"]
[tool.coverage.paths]
source = ["fasjson"]
[tool.coverage.report]
fail_under = 100
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
# Don't complain if tests don't hit defensive assertion code
"raise AssertionError",
"raise NotImplementedError",
"\\.\\.\\.",
]
omit = [
"fasjson/__init__.py",
"fasjson/tests/*",
]
[tool.rstcheck]
report_level = "WARNING"
ignore_directives = [
"openapi",
]
ignore_roles = ["pr", "issue"]
ignore_messages = "Duplicate implicit target name"
[tool.towncrier]
package = "fasjson"
filename = "docs/release_notes.md"
directory = "news/"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
template = "news/_template.md.j2"
title_format = "## v{version}"
issue_format = "{issue}"
[[tool.towncrier.type]]
directory = "bic"
name = "Backwards Incompatible Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "dependency"
name = "Dependency Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "bug"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "dev"
name = "Development Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "docs"
name = "Documentation Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "other"
name = "Other Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "author"
name = "Contributors"
showcontent = true
[tool.pytest.ini_options]
testpaths = [
"fasjson/tests/unit",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"