-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
50 lines (41 loc) · 1.07 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
[tool.poetry]
name = "fatoshist"
version = "0.1.0"
description = ""
authors = ["leviobrabo <carlosjunior20313@gmail.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "3.12.*"
pytelegrambotapi = "^4.22.1"
schedule = "^1.2.2"
pymongo = "^4.8.0"
pytz = "^2024.2"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
taskipy = "^1.13.0"
ruff = "^0.6.4"
black = "^24.8.0"
[tool.black]
line-length = 150
[tool.ruff]
line-length = 150
lint.select = ['I', 'F', 'E', 'W', 'PL', 'PT']
ignore = ["PLR2004", "PLR0913", "PLR0917", "PLR0912", "PLR0914", "PLE1205", "PLR0915", "E501", "E117"]
preview = true
[tool.ruff.format]
preview = true
quote-style = 'single'
[tool.pytest.ini_options]
pythonpath = "."
addopts = '-p no:warnings'
[tool.taskipy.tasks]
lint = 'ruff check . && ruff check . --diff'
format = 'ruff check . --fix && ruff format .'
run = 'fatoshistbot dev fatoshist/main.py'
pre_test = 'task lint'
test = 'pytest -s -x --cov=fatoshist -vv'
post_test = 'coverage html'
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"