/
pyproject.toml
120 lines (109 loc) · 2.79 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
[tool.poetry]
name = "starception"
description = "Beautiful debugging page for Starlette apps."
version = "1.2.1"
authors = ["Alex Oleshkevich <alex.oleshkevich@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/alex-oleshkevich/starception"
repository = "https://github.com/alex-oleshkevich/starception"
documentation = "https://github.com/alex-oleshkevich/starception"
keywords = []
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = "^3.8"
MarkupSafe = "^2"
Jinja2 = "^3"
typing_extensions = "^4.4"
[tool.poetry.group.dev.dependencies]
starlette = "*"
pytest = "^7.2"
pytest-asyncio = "^0.18.0"
pytest-cov = "^4.0"
black = "^22.6.0"
mypy = "^1.4"
flake8 = "^4.0.1"
uvicorn = "^0.18.2"
fastapi = "^0.79.0"
requests = "^2.28.1"
pygments = { optional = true, version = "^2.13" }
[tool.poetry.extras]
highlight = ["pygments"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ["py38"]
skip-string-normalization = true
line_length = 120
extend-exclude = true
exclude = '''
(
asv_bench/env
| \.egg
| \.git
| \.hg
| \.mypy_cache
| \.nox
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| setup.py
)
'''
[tool.isort]
combine_as_imports = true
include_trailing_comma = true
known_standard_library = "dataclasses,typing_extensions"
known_first_party = "starception"
known_third_party = ["pkg_resources", "toml"]
known_future_library = "__future__"
line_length = 120
multi_line_output = 3
profile = "black"
use_parentheses = true
[tool.coverage.run]
branch = true
source = ["starception"]
omit = ["tests/*", ".venv/*", ".git/*", "*/__main__.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError"
]
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
strict = true
pretty = true
show_error_codes = true
files = ["starception", "examples", "tests"]
[tool.pytest.ini_options]
minversion = "7.2"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
norecursedirs = [
"node_modules", "frontend", "storage", "dist", ".git",
"*/migrations/*", "*/static/*", "docs", ".venv"
]
addopts = "--tb=short -s --no-cov-on-fail"
testpaths = ["tests"]
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
]