-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
82 lines (70 loc) · 1.64 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
[tool.poetry]
name = "fastapi-offline-docs"
version = "1.0.1"
description = "Offline API docs for FastAPI"
authors = ["community-of-python"]
readme = "README.md"
packages = [{ include = "fastapi_offline_docs" }]
include = [{ path = "static/*.*" }]
[tool.poetry.dependencies]
python = "^3.9"
fastapi = ">=0.101.1,<1.0.0"
[tool.poetry.group.dev.dependencies]
mypy = "^1.10.1"
pytest = "^8.2.2"
pytest-cov = "^5.0.0"
ruff = "^0.5.1"
httpx = "^0.27.0"
pre-commit = "^3.7.1"
pytest-xdist = "^3.6.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
files = ["fastapi_offline_docs", "tests"]
python_version = "3.9"
strict = true
ignore_missing_imports = true
pretty = true
show_error_codes = true
implicit_reexport = true
warn_unused_ignores = false
warn_return_any = false
namespace_packages = true
disable_error_code = "attr-defined,valid-type"
disallow_subclassing_any = false
disallow_untyped_decorators = false
[tool.ruff]
target-version = "py39"
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"EM",
"FBT",
"TRY003",
"D1",
"D106",
"D203",
"D213",
"G004",
"FA",
"ANN101",
"ANN102",
"COM812",
"ISC001",
]
[tool.ruff.lint.isort]
no-lines-before = ["standard-library", "local-folder"]
known-third-party = []
known-local-folder = []
lines-after-imports = 2
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = ["S101", "S311"]
[tool.coverage.report]
exclude_also = ["if typing.TYPE_CHECKING:", 'class \w+\(typing.Protocol\):']
omit = ["tests/*"]
[tool.pytest.ini_options]
addopts = '--cov=. -p no:warnings --cov-report term-missing'