-
Notifications
You must be signed in to change notification settings - Fork 22
/
pyproject.toml
105 lines (84 loc) · 2.17 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
[tool.poetry]
name = "tahrir-api"
version = "1.4.0"
description = "An API for interacting with the Tahrir database"
license = "GPLv3+"
authors = [
"Ross Delinger <[email protected]>",
"Fedora Infrastructure <[email protected]>",
]
readme = 'README.rst'
repository = "https://github.com/fedora-infra/tahrir-api"
homepage = "https://github.com/fedora-infra/tahrir-api"
packages = [
{ include = "tahrir_api" },
]
include = [
{ path = "tests/*", format = "sdist" },
{ path = "examples/*", format = "sdist" },
]
classifiers= [
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
]
[tool.poetry.dependencies]
python = "^3.9.0"
pygments = "^2.17.2"
simplejson = "^3.19.2"
sqlalchemy = "^2.0.29"
arrow = "^1.3.0"
alembic = "^1.13.1"
fedora-messaging = "^3.5.0"
tahrir-messages = "^1.0.2 || ^2.0.0"
sqlalchemy-helpers = ">=0.13.0"
fasjson-client = {version = "^1.0.8", optional = true}
click = {version = "^8.0.0", optional = true}
[tool.poetry.group.dev.dependencies]
coverage = {extras = ["toml"], version = ">=7.4.4"}
black = ">=24.3.0"
ruff = ">=0.3.5"
pytest = ">=8.1.1"
pytest-cov = ">=5.0.0"
[tool.poetry.extras]
scripts = [
"click",
"fasjson-client",
]
[tool.poetry.scripts]
tahrir-sync-db = "tahrir_api.scripts.syncdb:main"
tahrir-populate-series = "tahrir_api.scripts.populateseries:main"
tahrir-populate-avatars = "tahrir_api.scripts.populate_avatars:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "S", "B", "RUF"]
ignore = ["S324"] # Allow use of md5 & sha1
[tool.ruff.lint.isort]
lines-after-imports = 2
order-by-type = false
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[tool.coverage.run]
branch = true
source = [
"tahrir_api",
]
[tool.coverage.report]
fail_under = 50
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"def __repr__",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
omit = [
"tests/*",
"tahrir_api/migrations/env.py",
]