forked from ankicommunity/ankicommunity-api-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
126 lines (114 loc) · 2.59 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
[tool.poetry]
name = "djankiserv"
version = "0.0.9"
description = "Django-based synchronisation and API server for Anki"
authors = ["Anton Melser <[email protected]>"]
maintainers = ["Anton Melser <[email protected]>"]
license = "AGPL-3.0-or-later"
readme = "README.md"
homepage = "https://github.com/ankicommunity/djankiserv"
repository = "https://github.com/ankicommunity/djankiserv"
[tool.poetry.dependencies]
python = ">=3.8,<4"
django = "^3.1"
djangorestframework = "^3.11.1"
gunicorn = "^20.0.4"
django-k8s = "^0.2.9"
djangorestframework-simplejwt = "^4.4.0"
psycopg2-binary = {version = "^2.8.6", optional = true}
mysqlclient = {version = "^2.0.1", optional = true}
[tool.poetry.dev-dependencies]
requests-mock = "^1.8.0"
coverage = {extras = ["toml"], version = "^5.2.1"}
python-coveralls = "^2.9.3"
coveralls = "^2.1.2"
colorama = "^0.4.3"
pylint = "^2.6.0"
flake9 = "^3.8.3"
pre-commit = "^2.7.1"
psycopg2-binary = "^2.8.6"
mkdocs = "^1.3.0"
black = "^22.3.0"
[tool.poetry.extras]
mysql = ["mysqlclient"]
pgsql = ["psycopg2-binary"]
[tool.coverage.run]
omit = [
"*manage.py",
]
[tool.pylint.messages_control]
# I0011 Warning locally suppressed using disable-msg
disable = """
invalid-name,
logging-fstring-interpolation,
fixme,
I0011,
missing-docstring,
C0330,
too-few-public-methods,
too-many-arguments,
C0326,
pointless-string-statement,
no-member,
R0901,
R0801,
"""
ignore = """,
migrations,
"""
[tool.pylint.basic]
# Good variable names which should always be accepted, separated by a comma.
good-names = "i,j,k,ex,_,f,e,s,w,li,t"
[tool.pylint.format]
max-line-length = 120
[tool.isort]
multi_line_output = 3
line_length = 120
known_third_party = "rest_framework"
known_first_party = "djankiserv"
include_trailing_comma = "True"
force_grid_wrap = 0
use_parentheses = "True"
[tool.flake8]
ignore = "E226,E266"
exclude = """,
tmp,
libs,
.git,
__pycache__,
build,
dist
"""
max-line-length = 120
max-complexity = 10
extend-ignore = "E203,W503"
[tool.black]
line-length = 120
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
# Add additional patterns here:
| .ropeproject
| tmp
| libs
| static
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"