-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
143 lines (132 loc) · 3.18 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
[tool.poetry]
name = "toolhub"
version = "1.0.0"
description = "An authoritative and well promoted catalog of Wikimedia tools"
authors = [
"Bryan Davis <[email protected]>"
]
license = "GPL-3.0-or-later"
readme = "README.rst"
include = [
"README.rst",
"pyproject.toml",
"COPYING"
]
[tool.poetry.dependencies]
python = "^3.9"
Django = "^3.2.13"
django-environ = "^0.7.0"
django-log-request-id = "^1.6.0"
mysqlclient = "^2.0.1"
social-auth-app-django = "^5.0.0"
django-webpack-loader = "^0.7.0"
djangorestframework = "^3.12.1"
PyYAML = "^5.3.1"
uritemplate = "^3.0.1"
django-filter = "^21.1"
jsonfield = "^3.1.0"
drf-friendly-errors = {git = "https://github.com/bd808/drf-friendly-errors.git", rev = "933eb5b"}
drf-spectacular = "^0.21.0"
requests = "^2.25.0"
drf-nested-routers = "^0.93.3"
whitenoise = {extras = ["brotli"], version = "^5.2.0"}
django-oauth-toolkit = "^1.3.3"
jsonschema = "^3.2.0"
django-reversion = "^4.0.0"
jsonpatch = "^1.28"
django-reversion-compare = "^0.14.1"
elasticsearch-dsl = ">=7.3.0,<7.4.0"
django-elasticsearch-dsl = ">=7.0.0,<8.0.0"
django-elasticsearch-dsl-drf = "^0.22.4"
django-safedelete = "^1.0.0"
rules = "^3.0"
django-csp = "^3.7"
django-prometheus = "2.1.0"
ecs-logging = "^1.0.1"
python-memcached = "^1.59"
elasticsearch = ">=7.10.0,<7.11.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
black = "^22.12.0"
flake8 = "^5.0.4"
flake8-blind-except = "^0.2.1"
flake8-bugbear = "^22.12.6"
flake8-builtins = "^2.0.1"
flake8-comprehensions = "^3.10.1"
flake8-docstrings = "^1.6.0"
flake8-import-order = "^0.18.2"
flake8-import-single = "^0.1.5"
flake8-logging-format = "^0.9.0"
flake8-rst-docstrings = "^0.3.0"
pytest-cov = "^4.0.0"
django-coverage-plugin = "^3.0.0"
bandit = "^1.7.4"
Sphinx = "^4.1.2"
sphinxcontrib-django = "^0.5.1"
sphinx-autobuild = "^2021.3.14"
sphinx-copybutton = "^0.4.0"
sphinx-rtd-theme = "^1.0.0"
coverage = {extras = ["toml"], version = "^6.5.0"}
httpretty = "^1.1.4"
unittest2 = "^1.1.0"
pylint-django = "^2.5.3"
requests-mock = "^1.10.0"
Flask = "^2.0.1" # contrib/oauth-client-example
envparse = "^0.2.0" # contrib/oauth-client-example
Authlib = "^0.15.4" # contrib/oauth-client-example
[tool.pylint]
[tool.pylint.master]
load-plugins = "pylint_django"
[tool.pylint.DESIGN]
max-branches = 16
[tool.black]
line-length = 79
target_version = ['py37']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.tox
| \.venv
| _build
| build
| dist
| migrations
| node_modules
)/
'''
[tool.isort]
known_first_party = ["toolhub", "vue"]
multi_line_output = 3
lines_after_imports = 2
force_grid_wrap = 0
combine_as_imports = true
include_trailing_comma = true
[tool.coverage.run]
source = ["toolhub", "vue"]
omit = [
"*/migrations/*",
"toolhub/wsgi.py",
"toolhub/apps/toolinfo/schema2model.py",
]
branch = true
dynamic_context = "test_function"
relative_files = true
[tool.coverage.report]
fail_under = 85
show_missing = true
skip_covered = true
skip_empty = true
ignore_errors = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
]
[tool.coverage.html]
directory = "docs/htmlcov"
show_contexts = true
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"