-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
101 lines (85 loc) · 2.74 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
[project]
name = "django-fbv"
authors = [{name = "Adam Hill", email = "[email protected]"}]
dynamic = ["version", "description"]
[tool.poetry]
name = "django-fbv"
version = "0.6.0"
description = "Utilities to make function-based views cleaner, more efficient, and better tasting. "
authors = ["adamghill <[email protected]>"]
license = "BSD-3"
readme = "README.md"
repository = "https://github.com/adamghill/django-fbv/"
homepage = "https://github.com/adamghill/django-fbv/"
documentation = "https://django-fbv.readthedocs.io/"
keywords = ["python", "html", "django"]
packages = [{ include = "fbv" }]
[tool.poetry.urls]
"Funding" = "https://github.com/sponsors/adamghill"
[tool.poetry.dependencies]
python = ">=3.7,<4.0"
django = ">2.2.0"
# docs
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 }
toml = { version = "*", optional = true }
attrs = { version = "^21.4.0", optional = true }
[tool.poetry.dev-dependencies]
pytest = "^6"
flake9 = "^3"
black = ">21"
isort = "^5"
sphinx-autobuild = "^2021.3.14"
mypy = "^0"
coverage = {extras = ["toml"], version = "^6"}
pytest-cov = "^3"
pytest-django = "^4"
django-stubs = "^1"
types-toml = "^0"
[tool.poetry.extras]
docs = ["Sphinx", "linkify-it-py", "myst-parser", "furo", "sphinx-copybutton", "toml", "attrs"]
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.pytest.ini_options]
addopts = "--quiet --failed-first --reuse-db --nomigrations -p no:warnings"
testpaths = [
"tests"
]
[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.9"
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = ["markdown2"]
ignore_missing_imports = true
[tool.poe.tasks]
t = { cmd = "pytest", help = "Run tests" }
tc = { cmd = "pytest --cov=fbv", help = "Run tests with coverage" }
c = { 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", "t", "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"