-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
102 lines (84 loc) · 2.56 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
[tool.poetry]
name = "pyasstosrt"
version = "1.4.1"
description = "Convert ASS subtitle to SRT format"
authors = ["GitBib <[email protected]>"]
license = "Apache License, Version 2.0, see LICENSE file"
readme = "README.md"
homepage = "https://github.com/GitBib/pyasstosrt"
repository = "https://github.com/GitBib/pyasstosrt"
keywords = ["ASS subtitle", "SRT", "Convert"]
classifiers = [
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
]
packages = [
{ include = "pyasstosrt" },
]
[tool.poetry.dependencies]
python = ">=3.8,<4"
typer = { extras = ["all"], version = "^0.12.5", optional = true }
[tool.poetry.dev-dependencies]
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
[tool.poetry.extras]
cli = ["typer"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
include = '\.pyi?$'
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.pylint.MESSAGE_CONTROL]
disable = [
"cyclic-import",
"duplicate-code",
"line-too-long",
"missing-class-docstring",
"missing-module-docstring",
"super-init-not-called",
"too-few-public-methods",
"too-many-ancestors",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-return-statements",
"ungrouped-imports",
"unused-import",
]
enable = "useless-suppression"
[tool.pylint.REPORTS]
reports = "no"
[tool.pylint.FORMAT]
max-line-length = "120"
[tool.pylint.VARIABLES]
ignored-argument-names = "args|kwargs|_|__"
[tool.pylint.BASIC]
good-names = "_,__,i,e,k,v,fn,get,post,put,patch,delete,route,asgi,websocket,Dependency,Body,Parameter,HandlerType,ScopeType,Auth,User"
no-docstring-rgx = "(__.*__|main|test.*|.*test|.*Test|^_.*)$"
[tool.pylint.LOGGING]
# Logging modules to check that the string format arguments are in logging
# function parameter format
logging-modules = ["logging", "picologging"]
[tool.coverage.run]
omit = ["*/tests/*"]
[tool.pycln]
all = true
[tool.pyright]
include = ["pyasstosrt", "tests"]
[tool.poetry.scripts]
pyasstosrt = "pyasstosrt.batch:app"