forked from Zaczero/CBBI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
136 lines (120 loc) · 2.74 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
[tool.poetry]
authors = ["Your Name <[email protected]>"]
description = ""
name = "cbbi"
version = "0.0.0"
[tool.poetry.dependencies]
filecache = "<1"
fire = "<1"
httpx = {version = "<1", extras = ["brotli", "http2"]}
matplotlib = "^3.8.2"
numpy = "^1.26.3"
pandas = "^2.1.4"
pyfiglet = "^1.0.2"
python = "^3.12"
python-telegram-bot = "*"
scikit-learn = "^1.3.2"
seaborn = "<1"
sty = "^1.0.6"
tqdm = "^4.66.1"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
indent-width = 4
line-length = 120
target-version = "py312"
[tool.ruff.lint]
ignore = [
"S101", # assert
]
select = [
# see https://docs.astral.sh/ruff/rules/ for rules documentation
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"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
"UP", # pyupgrade
"Q", # flake8-quotes
"PERF", # perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
# "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
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "single"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "lf"
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["id", "open", "type"]
[tool.ruff.lint.flake8-gettext]
extend-function-names = ["pgettext", "npgettext"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.pep8-naming]
extend-ignore-names = ["ET"]
[tool.ruff.lint.pylint]
max-args = 10