-
Notifications
You must be signed in to change notification settings - Fork 31
/
pyproject.toml
124 lines (109 loc) · 3 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# -------------------------------------
# Poetry: Metadata
# -------------------------------------
[tool.poetry]
name = "aap-eda"
version = "0.2.0"
description = ""
authors = ["Red Hat, Inc. <info@ansible.com>"]
readme = "README.md"
packages = [{ include = "aap_eda", from = "src" }]
include = ["aap_eda/data/playbooks/*.yml"]
[tool.poetry.scripts]
aap-eda-manage = 'aap_eda.manage:main'
# -------------------------------------
# Poetry: Dependencies
# -------------------------------------
[tool.poetry.extras]
all = ["psycopg2"]
dev = ["psycopg2-binary"]
[tool.poetry.dependencies]
python = ">=3.11,<3.12"
django = ">=4.2,<4.3"
djangorestframework = "3.15.*"
djangorestframework_simplejwt = "5.3.*"
dynaconf = ">=3.1.12,<3.3"
drf-spectacular = ">=0.26.5,<0.27"
channels = { version = "4.0.*", extras = ["daphne"] }
psycopg2 = { version = "2.9.*", optional = true }
psycopg2-binary = { version = "*", optional = true }
django-rq = "^2.8.0"
rq = "^1.13.0"
django-filter = ">23.2,<24"
pydantic = ">=1.8.1,<1.11"
cryptography = ">=38,<43"
kubernetes = "26.1.*"
podman = "4.9.*"
rq-scheduler = "^0.10"
django-ansible-base = { git = "https://github.com/ansible/django-ansible-base.git", tag="2024.5.31", extras = [
"channel_auth",
"rbac",
] }
jinja2 = ">=3.1.3,<3.2"
django-split-settings = "^1.2.0"
pexpect = "^4.9.0"
ansible-runner = ">=2.3"
python-gnupg = "^0.5.2"
[tool.poetry.group.test.dependencies]
pytest = "*"
pytest-django = "*"
pytest-asyncio = "*"
requests = { version = "*", python = "<4.0" }
pytest-cov = "^4.1.0"
pytest-lazy-fixture = "^0.6.3"
[tool.poetry.group.lint.dependencies]
flake8 = "*"
isort = "*"
black = "*"
flake8-broken-line = { version = "*", python = "<4.0" }
flake8-string-format = "*"
# This is an experimental linter.
ruff = "*"
# The rull claims that the flake8 plugins listed below are re-implemented,
# These plugins will remain included until it's verified.
pep8-naming = "*"
flake8-bugbear = "*"
flake8-comprehensions = "*"
flake8-debugger = "*"
flake8-docstrings = "*"
flake8-eradicate = { version = "*", python = "<4.0" }
flake8-print = "*"
[tool.poetry.group.dev.dependencies]
ipython = "*"
# -------------------------------------
# Tools
# -------------------------------------
[tool.black]
line-length = 79
target-version = ["py39", "py310"]
[tool.isort]
profile = "black"
combine_as_imports = true
line_length = 79
[tool.ruff]
line-length = 79
select = [
"E",
"F",
"D", # flake8-docstrings
"TID", # flake8-tidy-imports
]
extend-ignore = [
"D1", # Missing docstrings errors
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"src/aap_eda/core/migrations/*" = ["E501"]
"tests/**/*.py" = [
"S101", # Asserts allowed in tests
"ARG", # Fixtures are not always used explicitly
"SLF001", # Call private methods in tests
"D", # Docstrings are not required in tests
]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "parents"
[tool.ruff.pydocstyle]
convention = "pep257"