-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
97 lines (84 loc) · 1.95 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
[tool.poetry]
name = "botaffiumeiro"
version = "1.0"
description = "Telegram bot for modifying links with affiliate programs"
authors = [
"Héctor Martínez",
"Daniel Martín"
]
license = "GPL3"
readme = "README.md"
repository = "https://github.com/hectorzin/botaffiumeiro"
[tool.poetry.dependencies]
python = ">=3.11,<3.14"
[tool.poetry.group.dev.dependencies]
pre-commit = "3.6.2"
pre-commit-hooks = "4.5.0"
pylint = "3.1.0"
ruff = "0.3.4"
mypy = "1.13.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
src = ["botaffiumeiro"]
[tool.ruff.lint]
ignore = [
"ANN101", # Self... explanatory
"ANN401", # Opiniated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"TID252", # Relative imports
"RUF012", # Just broken
# Formatter conflicts
"COM812",
"COM819",
"D206",
"E501",
"ISC001",
"Q000",
"Q001",
"Q002",
"Q003",
"W191",
"PT009"
]
select = ["ALL"]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"telegram.ext" = "tgext"
"telegram" = "tg"
"handlers" = "h"
"config" = "cfg"
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = [
"botaffiumeiro",
]
combine-as-imports = true
[tool.ruff.per-file-ignores]
"ha-addon/__init__.py" = ["N999"]
"ha-addon/json2yaml.py" = ["INP001"]
[tool.pylint."MESSAGES CONTROL"]
# Reasons disabled:
# format - handled by ruff
# duplicate-code - unavoidable
# used-before-assignment - false positives with TYPE_CHECKING structures
disable = [
"abstract-method",
"duplicate-code",
"format",
"unexpected-keyword-arg",
"used-before-assignment",
]
[tool.isort]
profile = "black"
combine_as_imports = true
known_first_party = ["botaffiumeiro"]
force_sort_within_sections = true
[tool.mypy]
plugins = []
install_types = false
ignore_missing_imports = true
no_silence_site_packages = false
namespace_packages = true
explicit_package_bases = true