-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
58 lines (51 loc) · 1.54 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
[tool.poetry]
name = "droos-bot"
version = "0.3.0"
description = ""
authors = ["yshalsager <ysh-alsager@hotmail.com>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.11"
python-telegram-bot = "^20.3"
python-telegram-bot-pagination = "^0.0.3"
gspread = "^5.9.0"
gspread-pandas = "^3.2.2"
SQLAlchemy = "^2.0.18"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.3.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff] # https://github.com/charliermarsh/ruff
fix = true
ignore-init-module-imports = true
line-length = 100
select = ["A", "B", "BLE", "C4", "C90", "D", "DTZ", "E", "ERA", "F", "G", "I", "INP", "ISC", "N", "NPY", "PGH", "PIE", "PLC", "PLE", "PLR", "PLW", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "S", "SIM", "T10", "T20", "TID", "UP", "W", "YTT"]
ignore = ["E501", "PGH001", "RET504", "S101", "D211", "D213", "ERA001", "G004", "D100", "D101", "D102", "D103", "D104", "D105", "D104", "D107"]
unfixable = ["ERA001", "F401", "F841", "T201", "T203"]
src = ["droos_bot"]
target-version = "py310"
[tool.black]
include = '(droos_bot\/.*$|\.pyi?$)'
exclude = '''
/(
\.git
| __pycache__
| \.venv
)/
'''
[tool.isort]
profile = "black"
[tool.mypy]
files = ["droos_bot"]
ignore_missing_imports = true
disallow_untyped_defs = true
#disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
plugins = ["sqlalchemy.ext.mypy.plugin"]