-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
90 lines (81 loc) · 1.57 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "lingq"
version = "1.0.0"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"aiohttp>=3.9.5",
"aiohttp_retry>=2.8.3",
"click==8.1.7",
"natsort==8.4.0",
"python-dotenv==1.0.1",
"yt_dlp==2024.10.22",
"pydantic",
"roman==4.2",
"Levenshtein",
"loguru",
]
[project.urls]
Repository = "https://github.com/daxida/lingq"
[project.optional-dependencies]
etc = [
"beautifulsoup4==4.12.3",
"faster_whisper==1.0.2",
"requests==2.32.3",
"ruff==0.7.0",
"tqdm==4.66.4",
"gpt4All",
"aeneas @ git+https://github.com/daxida/aeneas",
]
test = [
"pytest==8.2.1",
"deepdiff",
]
all = ["lingq[etc, test]"]
[project.scripts]
lingq = "cli:cli"
[tool.ruff]
line-length = 100
output-format = "concise"
[tool.ruff.lint.pycodestyle]
max-doc-length = 100
[tool.ruff.lint]
preview = true
select = [
"E", # pycodestyle error
"W", # pycodestyle warning
"I", # isort
"N", # pep8-naming
"F", # Pyflakes rules
"C", # flake8-complexity
"PTH", # Paths
"ANN", # Annotations
"Q", # Quotes
"RUF", # RUFF
# "FIX", # TODO
# "S", # flake8-bandit
"D212",
"D400",
# "D", # documentation
]
ignore = [
"ANN401",
"D105",
"D107",
"E221",
"RUF001",
"RUF002",
"RUF003",
"S101",
]
[tool.ruff.lint.per-file-ignores]
"etc/*" = [
# Allow Any in scripts
"ANN401",
]
[tool.mypy]
explicit_package_bases = true
ignore_missing_imports = true