-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (87 loc) · 1.85 KB
/
pyproject.toml
File metadata and controls
95 lines (87 loc) · 1.85 KB
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
[project]
name = "cbbi"
version = "0.0.0"
requires-python = "~=3.14.0"
dependencies = [
"fire",
"httpx[brotli,zstd]",
"matplotlib",
"numpy",
"polars",
"pyfiglet",
"python-telegram-bot",
"seaborn",
"sty",
"tqdm",
]
[tool.ruff]
indent-width = 4
line-length = 88
target-version = "py314"
[tool.ruff.lint]
ignore = [
"S101", # assert
]
# see https://docs.astral.sh/ruff/rules/ for rules documentation
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-argumentsf
"ASYNC", # flake8-async
"B", # flake8-bugbear
# "COM", # flake8-commas
"C4", # flake8-comprehensions
"E4", # pycodestyle
"E7",
"E9",
"F", # pyflakes
# "FBT", # flake8-boolean-trap
"FLY", # flynt
# "FURB", # refurb (preview)
"G", # flake8-logging-format
"I", # isort
"INT", # flake8-gettext
# "LOG", # flake8-logging (preview)
"N", # pep8-naming
"NPY", # numpy
"PERF", # perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"Q", # flake8-quotes
"UP", # pyupgrade
# "PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RSE", # flake8-raise
"RUF", # ruff
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"SLOT", # flake8-slots
"T10", # flake8-debugger
# "T20", # flake8-print
# "TRY", # tryceratops
"YTT", # flake8-2020
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["id", "open", "type"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.format]
indent-style = "space"
line-ending = "lf"
quote-style = "single"
skip-magic-trailing-comma = false
preview = true
[tool.setuptools]
packages = ["."]
[tool.uv]
package = false
python-downloads = "never"
python-preference = "only-system"