-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
159 lines (129 loc) · 4.02 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
####################################################################################################
####### PLEASE READ THE CONTRIBUTING DOCUMENT FIRST BEFORE APPLYING ANY CHANGES TO THIS FILE #######
########################################### SLICKML TEAM ###########################################
####################################################################################################
[tool.poetry]
name = "afk-bot"
version = "0.2.0"
description = "A bot for the away from keyboard times"
license = "MIT"
authors = [
"Amirhessam Tahmassebi <[email protected]>",
]
maintainers = [
"Amirhessam Tahmassebi <[email protected]>",
]
readme = "README.md"
homepage = "https://www.slickml.com"
repository = "https://github.com/slickml/afk-bot"
documentation = "https://github.com/slickml/afk-bot"
keywords = ["afk", "afk-bot"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
packages = [
{ include = "afk_bot", from = "src" },
]
include = ["src/afk_bot", "*.md"]
exclude = ["assets", "tests"]
[tool.poetry.dependencies]
python = ">=3.8,<3.13"
# --- gui-objects ---
PyAutoGUI = ">=0.9"
# --- cli ---
typer = ">=0.7"
# TODO(amir): leave it out for now due to mac security issues
# keyboard = "^0.13"
[tool.poetry.dev-dependencies]
# --- package-management ---
pip = ">=22.3"
# --- task-management ---
poethepoet = ">=0.16"
# --- testenv-management ---
tox = ">=3.27"
# --- formatting ---
add-trailing-comma = ">=2.2"
isort = ">=5.10"
black = ">=22.10"
# --- linting ---
flake8 = ">=5.0"
flake8-commas = ">=2.1"
flake8-annotations = ">=2.9"
flake8-comprehensions = ">=3.10"
flake8-eradicate = ">=1.2"
flake8-simplify = ">=0.19"
flake8-tidy-imports = ">=4.8"
flake8-type-checking = ">=2.1"
flake8-typing-imports = ">=1.12"
flake8-use-fstring = ">=1.4"
pep8-naming = ">=0.13"
mypy = ">=0.990"
# --- unit-testing ---
pytest = ">=7.2"
pytest-cov = ">=4.0"
pytest-mock = ">=3.10"
mock = ">=4.0"
coverage = ">=6.5"
assertpy = ">=1.1"
# --- docs ----
sphinx = ">=5.3"
sphinx-autoapi = ">=1.9"
sphinx_design = ">=0.3"
myst-parser = ">=0.18"
furo = ">=2022.9"
[tool.poetry.scripts]
afk-bot = "afk_bot.cli:main"
# -- try `poe --help` for options
[tool.poe.tasks]
[tool.poe.tasks.add-trailing-comma]
help = "Format code style via add-trailing-comma"
cmd = "poetry run add-trailing-comma --exit-zero-even-if-changed src/**/*.py tests/**/*.py"
[tool.poe.tasks.black]
help = "Format code style via black"
cmd = "poetry run black --line-length 100 ."
[tool.poe.tasks.isort]
help = "Sort imported libraries via isort"
cmd = "poetry run isort --profile black ."
[tool.poe.tasks.flake8]
help = "Lint code via flake8"
cmd = "poetry run flake8 --verbose --benchmark --color always --config .flake8 ."
[tool.poe.tasks.mypy]
help = "Lint types via mypy"
cmd = "poetry run mypy --config-file mypy.ini ."
[tool.poe.tasks.test]
help = "Run unit-tests via pytest"
cmd = "poetry run python -m pytest --cov=src --cov-report=term --cov-report=html --cov-report=xml --cov-config=.coveragerc --tb=short -ra -v"
[tool.poe.tasks.tox]
help = "Test environments via tox"
cmd = "poetry run tox --conf=tox.ini --root=."
[tool.poe.tasks.format]
help = "Apply all formatting steps"
sequence = [
"add-trailing-comma",
"isort",
"black",
]
[tool.poe.tasks.check]
help = "Check all linting steps"
sequence = [
{ cmd = "poe black --check" },
{ cmd = "poe isort --check-only" },
"flake8",
"mypy",
]
[build-system]
requires = ["poetry-core>=1.9.0"]
build-backend = "poetry.core.masonry.api"