-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
73 lines (61 loc) · 1.48 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
[tool.poetry]
authors = ["duyixian <duyixian1234@qq.com>"]
description = "A redis-based session backend for Fastapi apps"
license = "MIT"
name = "fastapi-redis-session"
readme = "README.md"
repository = "/~https://github.com/duyixian1234/fastapi-redis-session"
version = "0.2.0"
[tool.poetry.dependencies]
fastapi = "^0.70.0"
python = "^3.7"
redis = "^3.5.3"
[tool.poetry.dev-dependencies]
black = "^20.8b1"
coverage = {extras = ["toml"], version = "^5.3"}
mypy = "^0.790"
pylint = "^2.6.0"
pytest = "^6.1.1"
pytest-cov = "^2.10.1"
requests = "^2.24.0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.pylint.master]
job = 0
suggestion-mode = "yes"
[tool.pylint.format]
max-line-length = 120
[tool.pylint.basic]
argument-naming-style = "any"
attr-naming-style = "any"
function-naming-style = "any"
method-naming-style = "any"
variable-naming-style = "any"
[tool.pylint.message_control]
disable = ["missing-docstring", "logging-fstring-interpolation"]
[tool.pylint.design]
min-public-methods = 0
[tool.pytest.ini_options]
addopts = " -svv --cov=fastapi_redis_session"
minversion = "6.0"
testpaths = [
"tests",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
fail_under = 90.0
show_missing = true
skip_covered = true
skip_empty = true
sort = "miss"
[tool.coverage.path]
source = "fastapi_redis_session"
[tool.black]
line-length = 120