-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
49 lines (39 loc) · 1.14 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
[tool.poetry]
name = "checkers-bot-tournament"
version = "0.1.0"
description = ""
authors = ["trentzz <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
argparse = "^1.4.0"
pytest = "^8.3.3"
mypy = "^1.13.0"
[tool.poetry.group.dev.dependencies]
ruff = "^0.8.2"
poethepoet = "^0.31.1"
coverage = "^7.6.9"
pre-commit = "^4.0.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
checkers = "checkers_bot_tournament.main:main"
[tool.poe.tasks]
_sort_imports = "ruff check --select I --fix ."
_ruff_format = "ruff format ."
_ruff_check = 'ruff check .'
_mypy = 'mypy .'
format_check = 'ruff format . --check'
fix = "ruff check --fix ."
_test_all = "coverage run -m pytest ./tests"
coverage_report = 'coverage report --omit "**/tests/**" --show-missing'
[[tool.poe.tasks.format]]
sequence = ['_sort_imports', '_ruff_format']
ignore_fail = 'return_non_zero'
[[tool.poe.tasks.check]]
sequence = ['format_check', '_ruff_check', '_mypy']
ignore_fail = 'return_non_zero'
[[tool.poe.tasks.test]]
sequence = ['_test_all', 'coverage_report']
ignore_fail = 'return_non_zero'