This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
158 lines (147 loc) · 3.66 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[tool.poetry]
name = "Transcrobes"
version = "0.1.1-rc1"
description = "Learn a language doing stuff you love"
authors = ["Anton Melser <anton@transcrob.es>"]
license = "AGPL-3.0-or-later"
[tool.poetry.dependencies]
python = "~3.9"
djangorestframework = "^3.11.1"
gunicorn = "^20.0.4"
psycopg2-binary = "^2.8.5"
django-k8s = "^0.2.9"
django-cors-headers = "^3.5.0"
djangorestframework-simplejwt = "^4.4.0"
asgiref = "^3.2.10"
xmltodict = "^0.12.0"
django-extensions = "^3.0.8"
django-filter = "^2.3.0"
requests = "^2.24.0"
django-anymail = {extras = ["mailgun"], version = "^8.0"}
django-widget-tweaks = "^1.4.8"
django-registration-redux = "^2.8"
libgravatar = "^0.2.4"
django-request-logging = "^0.7.2"
django = "^3.1.2"
kafka-python = "^2.0.2"
crc32c = "^2.1"
django-prometheus = "^2.1.0"
django-upload-validator = "^1.1.5"
aiohttp = {extras = ["speedups"], version = "^3.7.3"}
aiohttp-retry = "^2.1"
EbookLib = "^0.17.1"
lxml = "^4.6.2"
bs4 = "^0.0.1"
html5lib = "^1.1"
webvtt-py = "^0.4.6"
dawn = "^0.11.0"
uvicorn = {extras = ["standard"], version = "^0.13.4"}
strawberry-graphql = "^0.47.0"
whitenoise = "^5.2.0"
strawberry-graphql-django = "^0.0.6"
OpenCC = "1.1.1.post1"
broadcaster-noteable = {extras = ["kafka"], version = "^0.2.1"}
brotlipy = "^0.7.0"
[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"
ipdb = "^0.13.3"
ipython = "^7.18.1"
vcrpy = "^4.1.0"
vcrpy-unittest = "^0.1.7"
markdown = "^3.2.2"
autopep8 = "^1.5.5"
httpie = "^2.4.0"
unihan-etl = "^0.11.0"
[tool.coverage.run]
omit = [
"*manage.py",
]
[tool.pylint.messages_control]
# I0011 Warning locally suppressed using disable-msg
# disabling wrong-import-order because isort is run in pre-commit, pylint ignores [tool.isort] in this file
# and I can't work out how to get pylint to consider 'known-first-party'
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,
wrong-import-order,
"""
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 = "requests_mock,django,mock,pandas,pysankey,pytz,setuptools,yaml,django_wsgi,rest_framework,rest_framework_simplejwt,ankisyncd"
known_first_party = "transcrobes,ankrobes,enrich,lang,data,en_zhhans,enrichers,zhhans_en,utils"
# project = "transcrobes"
include_trailing_comma = "True"
force_grid_wrap = 0
use_parentheses = "True"
[tool.flake8]
ignore = "E226,E266"
exclude = """,
tmp,
libs,
.git,
__pycache__,
build,
dist,
transcrobes/data/experiments.py,
transcrobes/data/views.py
"""
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"