-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
113 lines (100 loc) · 2.62 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
[tool.poetry]
name = "tg-utils"
version = "1.0.2"
description = "Common utils for Django-based projects."
authors = ["Thorgate <[email protected]>"]
license = "ISCL"
homepage = "https://github.com/thorgate/tg-utils"
repository = "https://github.com/thorgate/tg-utils"
readme = "README.rst"
packages = [
{ include = "tg_utils" },
]
include = [
"tg_utils/**/*.html",
]
keywords = ["tg-utils", "thorgate"]
classifiers = [
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
]
[tool.poetry.dependencies]
python = ">=3.7.2,<4"
django = ">=2.2"
django-health-check = { version = "*", optional = true }
hashids = { version = "*", optional = true }
psutil = { version = "*", optional = true }
python-redis-lock = { version = "*", optional = true }
redis = { version = "*", optional = true }
requests = { version = "*", optional = true }
yappi = { version = "*", optional = true }
[tool.poetry.dev-dependencies]
pytest = "==7.*"
coverage = "*"
coveralls = "*"
pytest-cov = "*"
pytest-django = "*"
pytest-xdist = "*"
black = "==22.8.0"
prospector = "^1.7.0"
# pylint 2.15 is inconsitently crashing for some reason
# Ref: https://github.com/PyCQA/pylint-django/issues/370
pylint = "==2.14.*"
sphinx = "==3.*"
tox = "*"
tox-gh-actions = "*"
django-compressor = "*"
django-health-check = "*"
psutil = "*"
hashids = "*"
python-redis-lock = "*"
redis = "*"
requests = "*"
yappi = "*"
[tool.poetry.extras]
health_check = ["django-health-check", "psutil", "requests"]
lock = ["python-redis-lock", "redis"]
model-hash = ["hashids"]
profiling = ["yappi"]
[build-system]
requires = ["poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"
[tool.flake8]
max-line-length = 140
require-code = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.django_settings"
django_find_project = "false"
python_files = "tests/*.py tests/**/*.py"
norecursedirs = "venv* dist* htmlcov* example* .tox*"
addopts = "--capture=no -n auto"
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
| docs
)
'''
[tool.coverage.run]
branch = true
source = ["tg_utils/"]
[tool.coverage.html]
directory = "htmlcov"