-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
140 lines (122 loc) · 3.13 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[tool.black]
line-length=79
target-version=["py38"]
[tool.isort]
atomic=true
line_length = 79
lines_after_imports=2
lines_between_types=1
use_parentheses = true
balanced_wrapping = true
include_trailing_comma = true
multi_line_output = 3
known_third_party=["pytest", "yarl", "aiohttp", "aioredis", "envparse"]
known_first_party=["aiohttp_cache"]
[tool.coverage.run]
branch = true
source = ["aiohttp_cache"]
[tool.coverage.paths]
source = ["aiohttp_cache/"]
[tool.coverage.report]
fail_under = 70 # TODO should be 95%
skip_covered = true
show_missing = true
[tool.mypy]
check_untyped_defs = true
#disallow_any_unimported = true
#disallow_any_expr = true
#disallow_any_decorated = true
disallow_any_generics = true
#disallow_any_explicit = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
#disallow_untyped_decorators = true
disallow_untyped_defs = true
follow_imports = "normal"
follow_imports_for_stubs = true
ignore_missing_imports = false
mypy_path = "./aiohttp_cache"
namespace_packages = true
explicit_package_bases = true
show_column_numbers = true
show_error_codes = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"conftest",
"migrations.*",
"tests.*",
"*.tests",
]
ignore_errors = true
[[tool.mypy.overrides]]
module = [
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0.0"
addopts = "-vv -s --tb=native"
testpaths = "tests/"
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "| %(asctime)s | %(name)s | %(levelname)s | %(filename)s | %(message)s"
asyncio_mode = "auto"
[tool.interrogate]
ignore-init-method = true
ignore-init-module = true
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = true
fail-under = 5
exclude = ["setup.py", "docs", "build", "tests/load_testing"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*", "^get.*$", "^factory$"]
verbose = 2
quiet = false
whitelist-regex = []
color = true
[tool.poetry]
name = "aiohttp-cache"
version = "4.0.1"
description = "A cache system for aiohttp server"
authors = ["Daniel Garcia (cr0hn) <[email protected]>"]
maintainers = [
"Daniel Garcia (cr0hn) <[email protected]>",
"Artem Zhukov (zhukovgreen) <[email protected]",
]
classifiers = [
"Environment :: Console",
"Intended Audience :: System Administrators",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Security",
]
readme = "README.md"
repository = "https://github.com/cr0hn/aiohttp-cache"
license = "BSD"
include = [ "py.typed",]
[tool.poetry.dependencies]
python = "^3.7"
aiohttp = "^3.6"
envparse = "^0.2.0"
redis = "^4.5.1"
[tool.poetry.dev-dependencies]
pytest = "^7.2.2"
pytest-aiohttp = "^1.0.4"
pytest-cov = "^4.0"
pre-commit = "^2.17.0"
black = "^23.1.0"
isort = "^5.10.1"
[tool.poetry.group.dev.dependencies]
pytest-asyncio = "^0.20.3"
pdbpp = "^0.10.3"
types-redis = "^4.5.1.4"
[build-system]
requires = ["poetry>=1.0.0."]
build-backend = "poetry.masonry.api"