-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
114 lines (90 loc) · 2.26 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
[tool.poetry]
name = "easyblog-django"
version = "0.1.1"
description = "Blog CMS for http://jiri.one site."
authors = ["Jiří Němec <[email protected]>"]
license = "GPL3"
readme = "README.md"
packages = [{include = "easyblog_django"}]
[tool.poetry.dependencies]
python = "^3.11"
Django = "^4.1.3"
beautifulsoup4 = "^4.11.1"
httpx = "^0.23.0"
psycopg2-binary = "^2.9.5"
[tool.poetry.group.tests]
optional = true
[tool.poetry.group.tests.dependencies]
pytest = "^7.1.3"
pytest-django = "^4.5.2"
[tool.poetry.group.mypy]
optional = true
[tool.poetry.group.mypy.dependencies]
mypy = "^0.971"
django-stubs = "^1.12.0"
types-beautifulsoup4 = "^4.11.6"
[tool.poetry.group.tox]
optional = true
[tool.poetry.group.tox.dependencies]
tox = "^3.26.0"
[tool.poetry.group.pyflakes]
optional = true
[tool.poetry.group.pyflakes.dependencies]
pyflakes = "^2.5.0"
[tool.poetry.group.production]
optional = true
[tool.poetry.group.production.dependencies]
gunicorn = "^20.1.0"
[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# PyTest configuration
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "easyblog.settings"
# MyPY configuration
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "easyblog.settings"
[[tool.mypy.overrides]]
module = "rethinkdb.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "*.migrations.*"
ignore_errors = true
# Tox configuration
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py310, mypy, pyflakes
skipsdist = True
[gh-actions]
python =
3.10: py310, mypy, pyflakes
[testenv]
passenv = SYSTEM_ENV
deps =
poetry
commands =
poetry install --no-root --with tests
poetry run python -m pytest -v
[testenv:mypy]
basepython = python3.10
deps =
poetry
commands =
poetry install --no-root --with mypy
poetry run python -m mypy easyblog jiri_one
[testenv:pyflakes]
basepython = python3.10
deps =
poetry
commands =
poetry install --no-root --with pyflakes
poetry run python -m pyflakes easyblog jiri_one
"""