-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
98 lines (84 loc) · 2.3 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "xoinvader"
version = "0.2.0"
description = "(not so) small python curses space game"
authors = [
{name = "Pavel Kulyov", email = "[email protected]"},
]
license = {text = "MIT"}
readme = "README.rst"
keywords = ["curses", "space", "game"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console :: Curses",
"Environment :: X11 Applications",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Games/Entertainment :: Arcade",
]
requires-python = ">=3.10"
dependencies = [
"eaf==0.2.2",
"xo1==0.2.0",
"toml==0.10.2",
"windows-curses==2.4.0; platform_system=='Windows'",
]
[project.urls]
repository = "https://github.com/pkulev/xoinvader"
homepage = "https://github.com/pkulev/xoinvader"
documentation = "http://mmap.me/"
[project.optional-dependencies]
dev = [
"codecov==2.1.13",
"poethepoet==0.31.1",
"pytest==8.3.3",
"pytest-coverage",
"ruff==0.8.0",
]
docs = [
"sphinx==8.1.3",
"sphinx_rtd_theme==3.0.2",
]
[project.scripts]
xoigame = "xoinvader.game:main"
[tool.poe.tasks.format]
help = "Format all the code. You can add '--diff' or '--check' also."
cmd = "ruff format"
[tool.poe.tasks.lint]
help = "Lint all the code."
cmd = "ruff check"
[tool.poe.tasks.typecheck]
help = "Typecheck all the code."
cmd = "mypy xoinvader"
[tool.poe.tasks.test]
help = "Run unit tests."
cmd = "pytest --strict-markers -vvv tests/"
[tool.poe.tasks.ci]
help = "Run full CI sequence."
sequence = [
"format",
"lint",
"typecheck",
"test",
]
ignore_fail = true # TODO: drop after all lint errors being fixed
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff]
line-length = 100
select = ["E", "F", "W", "I", "N", "UP", "YTT", "ANN", "S", "B"]
[tool.mypy]
strict = true
implicit_reexport = true