-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
59 lines (52 loc) · 1.41 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
[project]
name = "hana-script"
version = "0.1.0"
description = "Add a short description here"
authors = [
{ name = "hanamizuno", email = "" }
]
dependencies = ["openai~=0.27.7", "pydub~=0.25.1", "pyannote.audio @ git+https://github.com/pyannote/pyannote-audio", "python-dotenv~=1.0.0"]
readme = "README.md"
requires-python = ">= 3.8"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"ruff~=0.0.270",
"pyright~=1.1.311",
"pytest~=7.3.1",
"pytest-cov~=4.1.0",
"black~=23.3.0",
"pydub-stubs>=0.25.1.0",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.rye.scripts]
lint = { chain = ["lint:ruff", "lint:pyright"] }
"lint:ruff" = "ruff check ."
"lint:pyright" = "pyright"
format = { chain = ["format:black", "format:ruff"] }
"format:black" = "black ."
"format:ruff" = "ruff --fix ."
hana-script = "python -m hana_script.main --audio-file"
[tool.black]
line-length = 79
target-version = ["py311"]
[tool.ruff]
line-length = 79
target-version = "py311"
select = [
# https://beta.ruff.rs/docs/rules/
"E", "F", "W", "C90", "I", "N", "D", "UP",
"B", "A", "COM", "C4", "EM", "FA", "ISC", "INP",
"PIE", "PYI", "PT", "Q", "SLF", "SIM", "TCH", "PTH",
"ERA", "PGH", "PLR", "PLW", "RUF"
]
ignore = ["D203", "D213"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.pyright]
typeCheckingMode = "strict"
pythonVersion = "3.11"