-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
87 lines (75 loc) · 1.94 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
[build-system]
requires = ["poetry-core>=1.8.3"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "folioblog"
version = "1.7.0"
description = "A PortFolio/Blog website build with the CMS Wagtail"
authors = ["Yannick Chabbert <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
wagtail = "^6.1.2"
django-social-share = "^2.3.0"
django-compressor = "^4.4"
redis = "^5.0.1"
hiredis = "^2.2.3"
psycopg = "^3.1.9"
[tool.poetry.group.test.dependencies]
tblib = "^3.0.0"
factory-boy = "^3.3.0"
wagtail-factories = "^4.2.1"
requests-mock = "^1.11.0"
selenium = "^4.10.0"
tox = "^4.15.1"
lxml = "^5.2.2"
coverage = {extras = ["toml"], version = "^7.5.3"}
[tool.poetry.group.dev.dependencies]
django-extensions = "^3.2.3"
django-debug-toolbar = "^4.1.0"
pre-commit = "^3.7.1"
pylama = {extras = ["toml"], version = "^8.4.1"}
black = "^24.4.2"
djhtml = "^3.0.6"
isort = "^5.12.0"
[tool.poetry.group.prod.dependencies]
psycopg = {extras = ["c"], version = "^3.1.16"}
gunicorn = "^22.0.0"
[tool.black]
line-length = 119
target-version = ["py310"]
extend-exclude = "/migrations/"
[tool.pylama]
skip = "*/.tox/*,*/migrations/*,*/settings/*,*/static/*"
linters = "pycodestyle,pyflakes,mccabe"
[tool.pylama.linter.pycodestyle]
max_line_length = 119
[tool.pylama.linter.mccabe]
complexity = 15
[tool.isort]
profile = "black"
skip = "migrations"
sections = "FUTURE,STDLIB,DJANGO,WAGTAIL,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
known_django = "django"
known_wagtail = "wagtail"
known_first_party = "folioblog"
[tool.coverage.run]
source = [ "folioblog" ]
branch = true
omit = [
"manage.py",
"folioblog/wsgi.py",
"folioblog/core/compressor.py",
"folioblog/settings/dev.py",
"folioblog/settings/local.py",
"folioblog/settings/prod.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"def __str__",
"def __repr__",
]