-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
126 lines (113 loc) · 2.85 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
[tool.poetry]
name = "sportorg"
version = "1.6.0"
description = "SportOrg, python, sportident, orienteering"
authors = ["Danil Akhtarov <daxartio@gmail.com>"]
[tool.poetry.dependencies]
python = "~3.8.1"
pywin32 = {version="^228", optional = true}
pyImpinj = {version="^1.2", optional = true}
playsound = {version="=1.2.2", optional = true}
aiohttp = "^3.9.0"
boltons = "^20"
chardet = "^5.2.0"
docxtpl = "^0"
jinja2 = "^2"
markupsafe = "2.0.1"
orjson = "^3.9.5"
polib = "^1"
psutil = "^5.9.5"
pydantic = "^1"
PySide6 = "^6"
python-dateutil = "^2"
python-dotenv = '^0.14'
pywinusb = "^0"
requests = "^2"
sportident = "^1"
[tool.poetry.group.dev.dependencies]
autoflake = "*"
black = ">=23"
commitizen = "^3.12.0"
cx_Freeze = "^6"
flake8 = "^6"
flake8-annotations-complexity = "*"
flake8-bandit = "*"
flake8-breakpoint = "*"
flake8-bugbear = "*"
flake8-builtins = "*"
flake8-comprehensions = "*"
flake8-eradicate = "*"
flake8-if-expr = "*"
flake8-isort = "*"
flake8-logging-format = "*"
flake8-print = "*"
flake8-pytest = "*"
flake8-pytest-style = "*"
flake8-requirements = "*"
flake8-return = "*"
mypy = "^1.4"
pep8-naming = "*"
poethepoet = "^0.22.0"
pylint = "^2.17"
pytest = "^7.4"
pytest-cov = "*"
pytest-deadfixtures = "*"
pytest-mock = "*"
toml = "*"
types-playsound = "^1.3.1.3"
types-polib = "^1.2.0.1"
types-python-dateutil = "^2.8.19.14"
types-requests = "^2.31.0.2"
types-six = "^1.16.21.9"
unify = "*"
[tool.poetry.extras]
win = ["pywin32", "pyImpinj", "playsound"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poe.env]
CODE = "tests sportorg"
[tool.poe.tasks.all]
help = "Run format lint test"
sequence = ["format", "lint", "test"]
default_item_type = "ref"
[tool.poe.tasks.test]
help = "Test with coverage"
sequence = [
{ref = "generate-mo"},
{cmd = "pytest -vv --cov"},
]
[tool.poe.tasks.test-fast]
help = "Test until error"
cmd = "pytest -vv --exitfirst"
[tool.poe.tasks.test-failed]
help = "Test failed"
cmd = "pytest -vv --last-failed"
[tool.poe.tasks.lint]
help = "Check code"
sequence = [
{ref = "generate-mo"},
# {cmd = "flake8 --jobs 4 --statistics --show-source ${CODE}"},
# {cmd = "pylint --jobs 1 --rcfile=setup.cfg ${CODE}"},
{cmd = "black --skip-string-normalization --line-length=88 --check ${CODE}"},
{cmd = "pytest --dead-fixtures --dup-fixtures"},
# {cmd = "mypy ${CODE}"},
]
[tool.poe.tasks.format]
help = "Formating code"
sequence = [
{ref = "generate-mo"},
{cmd = "autoflake --recursive --in-place --remove-all-unused-imports ${CODE}"},
{cmd = "isort ${CODE}"},
{cmd = "black --skip-string-normalization --line-length=88 ${CODE}"},
{cmd = "unify --in-place --recursive ${CODE}"},
]
[tool.poe.tasks.generate-mo]
help = "Generate mo files"
cmd = "python -m sportorg.language"
[tool.poe.tasks.run]
help = "Run"
sequence = [
{ref = "generate-mo"},
{cmd = "python SportOrg.pyw"}
]