-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
121 lines (107 loc) · 2.29 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "zed-news"
version = "0.9.0"
description = "news podcast on auto-pilot"
authors = ["Victor Miti <https://github.com/engineervix>"]
readme = "README.md"
packages = [{include = "app"}]
[tool.poetry.dependencies]
python = "~=3.10"
apprise = "^1.4.0"
babel = "^2.12.1"
beautifulsoup4 = "^4.12.2"
boto3 = "^1.26.147"
bpython = "^0.24"
cohere = "^4.8.0"
colorama = "^0.4.6"
eyed3 = "^0.9.7"
facebook-sdk = "^3.1.0"
fake-useragent = "^1.1.3"
feedparser = "^6.0.10"
invoke = "^2.1.2"
jinja2 = "^3.1.2"
langchain = "^0.2.10"
moviepy = "^1.0.3"
mutagen = "^1.46.0"
num2words = "^0.5.12"
openai = "^1.44.1"
peewee = "^3.17.0"
psycopg2 = "^2.9.9"
python-dateutil = "^2.8.2"
python-dotenv = "^1.0.0"
pytz = "^2023.3"
replicate = "^0.22.0"
requests = "^2.32.0"
tiktoken = "^0.4.0"
together = "^1.2.1"
tomli = "^2.0.1"
torch = "^2.1.1"
transformers = "^4.38.0"
vastai = "^0.2.5"
[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
commitizen = "^3.2.2"
coverage = {version = "<6", extras = ["toml"]}
dslr = "^0.4.0"
pre-commit = "^3.3.2"
ruff = "^0.5.3"
[tool.black]
line-length = 120
target-version = ['py38', 'py39', 'py310', 'py311']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| node_modules
| build
| dist
)/
)
'''
[tool.ruff]
exclude = [
".git",
"__pycache__",
"node_modules",
"public",
"venv",
".venv",
]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
ignore = ["E203", "E266", "E501"]
select = ["B", "C", "E", "F", "W", "B9"]
[tool.ruff.lint.isort]
known-first-party = ["app"]
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]
source = ["app/core/"]
branch = true # Measure branch coverage
[tool.coverage.report]
skip_covered = true
show_missing = true
[tool.commitizen]
version_provider = "poetry"
version_files = [
"app/__init__.py",
"cron.sh",
]
tag_format = "v$major.$minor.$patch"
annotated_tag = true
update_changelog_on_bump = false