-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (138 loc) · 2.91 KB
/
Copy pathpyproject.toml
File metadata and controls
154 lines (138 loc) · 2.91 KB
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
154
[tool.poetry]
name = "darkmoon"
version = "0.0.2"
authors = ["Obscurity Labs"]
description = "Project DarkMoon - CLI tool"
readme = "README.md"
license = "Proprietary"
[tool.poetry.scripts]
darkmoon = "darkmoon.cli.main:app"
[tool.poetry.dependencies]
python = "^3.10"
fastapi = "^0.95.0"
types-requests = "^2.27.13"
requests = "^2.31.0"
motor = "^3.0.0"
httpx = "^0.24.1"
pydantic = "1.10.11"
pefile = "^2023.2.7"
uvicorn = { extras = ["standard"], version = "^0.23.1" }
beanie = "^1.19.2"
typer = { extras = ["all"], version = "^0.9.0" }
proxmoxer = "^2.0.1"
jinja2 = "^3.1.2"
pytest = "^7.4.0"
python-multipart = "^0.0.6"
python-magic = "^0.4.27"
aiohttp = "^3.8.5"
[tool.poetry.group.dev.dependencies]
black = "23.7.0"
commitizen = "3.6.0"
mypy = "1.5.0"
pre-commit = "^3.3.3"
pytest-cov = "^4.1.0"
ruff = "0.0.278"
motor-types = "^1.0.0b2"
asgi-lifespan = "^2.1.0"
pytest-asyncio = "^0.21.0"
faker = "^19.1.0"
testcontainers = "^3.7.1"
schemathesis = "^3.19.6"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = "-q --cov=darkmoon --no-cov-on-fail"
filterwarnings = ["ignore::DeprecationWarning", "ignore::RuntimeWarning"]
markers = ["unit", "integration"]
[tool.coverage.run]
branch = true
omit = ["**/tests/**"]
[tool.coverage.report]
fail_under = 75
exclude_lines = ["pragma: no cover", "if __name__ == .__main__.:"]
show_missing = true
skip_covered = true
[tool.mypy]
allow_redefinition = true
ignore_missing_imports = true
no_warn_unused_ignores = true
strict = true
strict_optional = false
plugins = ["pydantic.mypy"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.black]
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| static
| docs
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
include = '\.pyi?$'
target_versions = ['py310']
[tool.ruff]
select = ["E", "F", "S", "B", "COM", "D", "C4", "ERA", "DTZ", "I", "T20", "UP"]
ignore = [
"B008",
"B904",
"B905",
"D100",
"D104",
"D107",
"D301",
"S106",
"S113",
"S603",
"ERA001",
]
exclude = [
".git",
".venv",
"__pycache__",
"build",
"dist",
"setup.py",
"docs",
"scripts",
]
target-version = "py310"
[tool.ruff.flake8-bugbear]
extend-immutable-calls = [
"fastapi.Depends",
"fastapi.Header",
"fastapi.Path",
"Depends",
"fastapi.params.Depends",
"Query",
"Body",
"Header",
"typer.Option",
"settings",
]
[tool.ruff.per-file-ignores]
"tests/**/*.py" = ["D417", "S101"]
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.isort]
force-wrap-aliases = false
combine-as-imports = true