-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
149 lines (129 loc) · 2.92 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.poetry]
authors = ["Victor Miti"]
description = "Generates a daily playlist of 10 Bible chapters (mp3 files) based on Professor Grant Horner's 10-list Bible-reading system"
name = "tenlists"
packages = [{ include = "tenlists" }]
readme = "README.md"
version = "1.0.1"
[tool.poetry.dependencies]
# Platform
python = "~3.12"
# Core
colorama = "0.4.6"
eyed3 = "0.9.7"
flask = "2.3.3"
flask-bcrypt = "0.7.1"
flask-debugtoolbar = "0.15.1"
flask-httpauth = "4.8.0"
flask-login = "0.6.3"
flask-mail = "0.10.0"
flask-moment = "1.0.6"
flask-restful = "0.3.10"
flask-talisman = "1.1.0"
flask-wtf = "0.15.1"
markupsafe = "2.1.5"
termcolor = "1.1.0"
python-dotenv = "0.21.1"
pyfiglet = "1.0.2"
# Utils
bpython = "0.24"
# https://stackoverflow.com/questions/69919970/no-module-named-distutils-util-but-distutils-installed
setuptools = "74.1.3"
# Production
gunicorn = "23.0.0"
sentry-sdk = "2.14.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = "24.8.0"
commitizen = "3.29.1"
honcho = "1.1.0"
invoke = "2.2.0"
pre-commit = "2.21.0"
pyupgrade = "3.17.0"
ruff = "0.6.8"
tomli = "2.0.1"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
coveralls = "^4.0.1"
faker = "8.16.0"
gtts = "2.5.3"
tqdm = "4.66.5"
pytest-cov = "5.0.0"
pytest-flask = "1.3.0"
[tool.black]
line-length = 120
target-version = ['py310', 'py311', 'py312']
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
| (.*)/migrations
| dist
)/
)
'''
[tool.ruff]
exclude = [".git", "__pycache__", ".pytest_cache", "node_modules", "LC_MESSAGES", "public", "venv", ".venv"]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
ignore = ["E203", "E266", "E501"]
select = ["B", "C", "E", "F", "W", "B9"]
[tool.ruff.lint.isort]
known-first-party = ["tenlists"]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 120
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.coverage.run]
branch = true
omit = [
"venv/*",
"tenlists/utils/*",
"manage.py",
"tasks.py"
]
[tool.coverage.report]
skip_covered = true
show_missing = true
[tool.pytest.ini_options]
addopts = "--cov=. --cov-report=html --cov-report=xml --cov-report=term-missing:skip-covered -s -vv"
testpaths = ["tests"]
python_files = [
"tests.py",
"test_*.py",
"*_tests.py"
]
[tool.commitizen]
annotated_tag = true
tag_format = "v$major.$minor.$patch"
update_changelog_on_bump = false
version_files = [
# "package.json",
"tenlists/__init__.py",
"tenlists/cli/__init__.py",
"tenlists/utils/__init__.py",
"tenlists/webapp/__init__.py",
]
version_provider = "poetry"