-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
184 lines (167 loc) · 3.88 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[tool.poetry]
name = "showtimes"
version = "2.0.0b2"
description = "A full-featured project management for foreign-media translation group"
authors = ["noaione <noaione0809@gmail.com>"]
license = "AGPL-3.0"
[tool.poetry.dependencies]
python = "^3.10"
fastapi = "0.101.1"
redis = {extras = ["hiredis"], version = "5.0.0"}
strawberry-graphql = "0.205.0"
motor = "3.2.0"
beanie = "1.21.0"
itsdangerous = "2.1.2"
orjson = "3.9.2"
websockets = "11.0.3"
coloredlogs = "15.0.1"
pendulum = "2.1.2"
aiopath = "0.6.11"
argon2-cffi = "21.3.0"
psutil = "5.9.5"
python-dotenv = "1.0.0"
python-magic-bin = {version = "0.4.14", platform = "win32"}
python-magic = {version = "0.4.27", platform = "linux"}
aiobotocore = "2.5.2"
meilisearch-python-async = "1.4.8"
msgspec = "0.17.0"
pydantic = "1.10.11" # pin to v1 since beanie doesn't support v2 yet
scikit-learn = "1.3.0"
pandas = "2.0.3"
joblib = "1.3.1"
httpx = "0.24.1"
ftfy = "6.1.1"
feedparser = "6.0.10"
markdownify = "0.11.6"
markdown = "3.4.4"
[tool.poetry.group.dev.dependencies]
isort = "^5.12.0"
black = "^23.7.0"
uvicorn = "^0.23.1"
types-aiobotocore = {extras = ["essential"], version = "^2.5.2"}
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
typing-extensions = "^4.7.1"
ruff = "^0.0.278"
rich = "^13.4.2"
libcst = "^1.0.1"
typer = "^0.9.0"
bump-pydantic = "^0.6.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
ignore = [
"E203",
"F405",
"F403",
"F722",
"N806",
"COM812",
"D400", # first line should be period, most of my docstring will be LICENSE header so no thanks
"D202",
"D401",
"N818", # error
]
line-length = 120
extend-exclude = [
"env",
"venv",
".pytest_cache",
".venv",
"__pycache__",
".git",
".mypy_cache",
".vscode",
".ruff_cache",
"**/Lib/**",
"dist",
"build"
]
ignore-init-module-imports = true
target-version = "py310"
select = [
"E",
"F",
"W",
"I",
"N",
"S",
"B",
"T",
"Q",
# "D",
"RUF",
"COM",
"CPY",
"PTH",
"ASYNC",
]
src = ["showtimes", "tests", "pipelines"]
[tool.ruff.pydocstyle]
convention = "numpy"
ignore-decorators = ["typing.overload"]
[tool.ruff.isort]
combine-as-imports = false
split-on-trailing-comma = true
required-imports = ["from __future__ import annotations"]
known-first-party = ["tests", "showtimes"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403", "I002", "D205"]
"tests/*.py" = ["S101", "I002", "D"] # assert statement used in pytest
"pipelines/*" = ["T", "I", "S603", "D"]
"_metadata.py" = ["I002"]
"migrations/*" = ["T201"]
[tool.black]
line-length = 120
target-version = ["py310"]
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| env
| _build
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
extend_skip = ["env/**", "venv/**", ".pytest_cache/**", ".venv/**", "__pycache__/**"]
line_length = 110
skip_gitignore = false
combine_as_imports = false
[tool.pyright]
include = ["showtimes", "pipelines", "app.py"]
exclude = ["venv", "env", "node_modules", ".venv", ".env", ".nox", ".pytest_cache", ".mypy_cache", ".tox", "build", "dist", "_build", "**/__pycache__"]
ignore = ["_testing"]
stubPath = "./stubs"
reportMissingImports = true
venv = "."
pythonVersion = "3.10"
[tool.coverage.run]
source = ["showtimes"]
branch = true
omit = [
"tests/*",
"showtimes/_metadata.py",
"showtimes/**/__init__.py",
]
[tool.coverage.report]
show_missing = true
skip_empty = true
precision = 2
fail_under = 30
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
addopts = "-v --cov=showtimes --cov-config=pyproject.toml --cov-report=lcov --cov-report=term-missing"