-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
139 lines (123 loc) · 3.5 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
137
138
139
[tool.poetry]
name = "validate-telegram-markdown"
version = "0.0.0"
description = "Validate Telegram flavored markdown"
authors = ["skarrok <[email protected]>"]
readme = "README.md"
license = "MIT"
homepage = "https://github.com/skarrok/validate-telegram-markdown"
repository = "https://github.com/skarrok/validate-telegram-markdown"
keywords = ["telegram", "markdown", "validate"]
classifiers = [
"Environment :: Console",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Utilities",
]
include = [
"LICENSE",
]
[tool.poetry.dependencies]
python = "^3.10"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry-dynamic-versioning]
enable = true
[tool.poetry.group.dev.dependencies]
mypy = "^1.8"
pre-commit = "^3.6.0"
ruff = "^0.5.4"
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
[tool.ruff]
line-length = 80
[tool.ruff.lint]
select = [
"ASYNC", # flake8-async
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
"DTZ", # flake8-datetimez
"EM", # flake8-errmsg
"E", # pycodestyle
"ERA", # flake8-eradicate
"EXE", # flake8-executable
"FLY", # flynt
"F", # pyflakes
"G", # flake8-logging-format
"ICN", # flake8-import-convensions
"I", # isort
"INP", # flake8-no-pep420
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PERF", # perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RUF", # ruff
"S", # flake8-bandit
"SIM", # flkae8-simplify
"SLF", # flake8-self
"SLOT", # flake8-slots
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
# for format compatibility
"COM812", # missing-trailing-comma
"E501", # line-too-long
"ISC001", # single-line-implicit-string-concatenation
"Q000", # bad-quotes-inline-string
# annoying
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"PLR2004", # magic-value-comparison
]
[tool.ruff.lint.per-file-ignores]
"**/test*" = [
"S101", # assert
]
[tool.ruff.lint.isort]
combine-as-imports = true
order-by-type = true
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
disallow_untyped_defs = true
disallow_any_generics = true
no_implicit_reexport = false
exclude = ["^venv/", "^\\.venv/"]
[tool.pytest.ini_options]
addopts = "-v --failed-first --exitfirst --showlocals"
python_files = "tests.py test_*.py"
python_functions = "test_*"
testpaths = ["tests"]
[tool.coverage.run]
source = ["."]
branch = true
parallel = true
omit = [".venv/*", "venv/*", "tests/*"]
[tool.coverage.report]
fail_under = 80
show_missing = true
skip_covered = true