-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
100 lines (87 loc) · 2.99 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
[tool.poetry]
name = "django-rich-logging"
version = "0.2.0"
description = "A prettier way to see Django requests while developing."
authors = ["adamghill <[email protected]>"]
license = "MIT"
readme = "README.md"
keywords = ["django", "python", "static", "markdown"]
repository = "https://github.com/adamghill/django-rich-logging/"
homepage = "https://github.com/adamghill/django-rich-logging/"
documentation = "https://django-rich-logging.readthedocs.io/"
[tool.poetry.urls]
"Funding" = "https://github.com/sponsors/adamghill"
[tool.poetry.dependencies]
python = ">=3.7,<4.0"
Django = ">3.0"
rich = "^11.2.0"
# docs extras
Sphinx = { version = "^4.3.2", optional = true }
linkify-it-py = { version = "^1.0.3", optional = true }
myst-parser = { version = "^0.16.1", optional = true }
furo = { version = "^2021.11.23", optional = true }
sphinx-copybutton = { version = "^0.4.0", optional = true }
sphinx-autobuild = { version = "^2021.3.14", optional = true }
toml = { version = "*", optional = true }
attrs = { version = "^21.4.0", optional = true }
[tool.poetry.extras]
docs = ["Sphinx", "linkify-it-py", "myst-parser", "furo", "sphinx-copybutton", "sphinx-autobuild", "toml", "attrs"]
[tool.poetry.dev-dependencies]
poethepoet = "^0"
black = "^22"
flake9 = "^3"
isort = "^5"
pytest = "^6"
pytest-django = "^4"
pywatchman = "^1"
django-stubs = "^1"
coverage = {extras = ["toml"], version = "^6"}
pytest-cov = "^3"
[tool.isort]
default_section = "THIRDPARTY"
known_first_party = ["static_site", "example"]
known_django = "django"
sections = ["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
lines_after_imports = 2
multi_line_output = 3
include_trailing_comma = true
skip_glob = "*/migrations/*.py"
profile = "black"
[tool.pytest.ini_options]
addopts = "--quiet --failed-first --reuse-db --nomigrations -p no:warnings"
testpaths = [
"tests"
]
markers = [
"slow: marks tests as slow",
]
[tool.flake8]
ignore = "E203,E266,H106,H904"
max-line-length = 88
[tool.coverage.run]
branch = true
parallel = true
[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
sort = "cover"
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
[tool.poe.tasks]
r = { cmd = "example/manage.py runserver 0:8046", help = "Start dev server" }
t = { cmd = "pytest -m 'not slow'", help = "Run tests" }
tc = { cmd = "pytest --cov=django_rich_logging", help = "Run tests with coverage" }
cr = { cmd = "coverage report", help = "Show coverage report" }
my = { cmd = "mypy .", help = "Run mypy" }
b = { cmd = "black . --check --quiet", help = "Run black" }
i = { cmd = "isort . --check --quiet", help = "Run isort" }
tm = ["b", "i", "tc", "my"]
sa = { cmd = "sphinx-autobuild -W docs/source docs/build", help = "Sphinx autobuild" }
sb = { cmd = "sphinx-build -W docs/source docs/build", help = "Build documentation" }
publish = { shell = "poetry publish --build -r test && poetry publish" }
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"