-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (86 loc) · 1.98 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
[project]
name = "sokodoko"
version = "0.1.0"
description = "SokoDoko Bot project"
readme = "README.md"
requires-python = ">=3.11"
license = {file = "LICENSE"}
keywords = ["python", "telegram", "bot"]
authors = [
{name = "Nikolay Shishov", email = "[email protected]"}
]
classifiers = [
"Programming Language :: Python"
]
dependencies = [
"pyTelegramBotAPI ~= 4.12.0",
"aiohttp ~= 3.8.4",
"sanic ~= 23.3.0",
"sanic-ext ~= 23.3.0",
"tinydb ~= 4.8.0",
"folium ~= 0.14.0",
"python-decouple ~= 3.8"
]
[project.optional-dependencies]
dev = [
"ruff >= 0.0.269",
"black >= 23.3.0",
"isort >= 5.12.0"
]
[project.urls]
repository = "https://github.com/nickosh/sokodoko"
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# The following are specific to Black, you probably don't want those.
| external
| internal
| migrations
| node_modules
| template
| templates
| thirdparty
)/
'''
skip-string-normalization = true
quiet = true
[tool.isort]
combine_as_imports = true
line_length = 88
profile = "black"
src_paths = ["."]
[tool.ruff]
select = [
"I", # iSort
"F", # PyFlakes
"E", # pycodestyle
"W", # Warning
"N", # pep8-naming
"YTT", # flake8-2020
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"PT", # flake8-pytest-style
"RET", # flake8-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"ERA", # eradicate
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PLR", # Pylint Refactor
"PLW", # Pylint Warning
"RUF", # Ruff-specific rules
]
ignore = [
"PLR0913", # Too many arguments to function call
"I001", # Import block is un-sorted or un-formatted
"RET505", # Unnecessary `else` after `return` statement
"E501", # Line too long
"E999", # Syntax Error as it doesnt understand match commands from Python 3.10+
]