-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
117 lines (104 loc) · 2.53 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
[tool.poetry]
name = "django-json-agg"
version = "0.0.1"
description = "Django JSON Agg"
authors = ["Discovery Team <discovery@redhat.com>"]
license = "GPL-3.0"
readme = "README.md"
homepage = "https://github.com/quipucords/django-json-agg"
repository = "https://github.com/quipucords/django-json-agg"
documentation = "https://django-json-agg.readthedocs.io"
packages = [
{ include = "json_agg", from = "src" },
]
classifiers = [
"Development Status :: 4 - Beta",
]
[tool.poetry.urls]
Changelog = "https://github.com/quipucords/django-json-agg/releases"
[tool.poetry.dependencies]
python = "^3.8"
django = ">=4.2"
[tool.poetry.group.devel.dependencies]
Pygments = ">=2.10.0"
coverage = { extras = ["toml"], version = ">=6.2" }
faker = "^25.9.1"
furo = ">=2021.11.12"
myst-parser = { version = ">=0.16.1" }
pre-commit = ">=2.16.0"
pre-commit-hooks = ">=4.1.0"
psycopg2 = "^2.9.9"
pydoclint = "^0.4.1"
pytest = ">=6.2.5"
pytest-django = "^4.8.0"
ruff = ">=0.4.6"
safety = ">=1.10.3"
sphinx = ">=4.3.2"
sphinx-autobuild = ">=2021.3.14"
sphinx-click = ">=3.0.2"
typeguard = ">=2.13.3"
xdoctest = { extras = ["colors"], version = ">=0.15.10" }
deepdiff = "^7.0.1"
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["json_agg", "tests"]
[tool.coverage.report]
show_missing = true
fail_under = 100
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.ruff.lint.isort]
force-single-line = true
lines-after-imports = 2
[tool.ruff]
src = ["src", "tests"]
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C90", # mccabe
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"UP", # pyupgrade
"W", # pycodestyle
]
# ignore checks that conflict with ruff formatter (https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules)
extend-ignore = [
"COM812",
"COM819",
"D107", # undocumented-public-init conflicts with DOC301
"D206",
"D300",
"E111",
"E114",
"E117",
"ISC001",
"ISC002",
"Q000",
"Q001",
"Q002",
"Q003",
"W191",
]
[tool.ruff.lint.per-file-ignores]
"*/test_*.py" = ["S101"]
"noxfile.py" = ["S101"]
"**/conftest.py" = ["S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pydoclint]
style = 'google'
exclude = '\.git|\.nox'
arg-type-hints-in-docstring = false
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"