forked from pythonarcade/arcade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
158 lines (139 loc) · 4.08 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
[project]
name = "arcade"
description = "Arcade Game Development Library"
readme = "README.md"
authors = [
{name="Paul Vincent Craven", email="[email protected]"}
]
license = {file = "license.rst"}
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"pyglet == 2.1dev2",
"pillow~=10.2.0",
"pymunk~=6.6.0",
"pytiled-parser~=2.2.3"
]
dynamic = ["version"]
[project.urls]
Homepage = "https://api.arcade.academy"
Documentation = "https://api.arcade.academy/"
Examples = "https://api.arcade.academy/en/latest/examples/index.html"
Issues = "https://github.com/pythonarcade/arcade/issues"
Source = "https://github.com/pythonarcade/arcade"
Book = "https://learn.arcade.academy"
[project.optional-dependencies]
# Note: this actually requires Python 3.9 due to sphinx==7.2.2
# Used for dev work
dev = [
"pytest",
"mypy",
"ruff",
"coverage",
"coveralls",
"pytest-mock",
"pytest-cov",
"pygments==2.17.2",
"docutils==0.20.1",
"furo",
"pyright==1.1.355",
"pyyaml==6.0.1",
"sphinx==7.2.6",
"sphinx-autobuild==2024.2.4",
"sphinx-copybutton==0.5.2",
"sphinx-sitemap==2.5.1",
"typer[all]==0.11.0",
"wheel",
]
# Testing only
testing_libraries = [
"pytest",
"pytest-mock",
"pytest-cov",
"pyyaml==6.0.1",
]
[project.scripts]
arcade = "arcade.management:execute_from_command_line"
[project.entry-points.pyinstaller40]
hook-dirs = "arcade.__pyinstaller:get_hook_dirs"
[tool.setuptools.packages.find]
include = ["arcade", "arcade.*"]
[tool.setuptools.dynamic]
version = {attr = "arcade.version.VERSION"}
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.ruff]
# --- Description of what we ignore ---
#
# E731 do not assign a lambda expression, use a def
# E741 Ambiguous variable name
# F811: redefinition
line-length = 120
output-format = "full"
exclude = ["venv", ".venv*", "tests", "build", "doc", "util", ".mypy_cache", ".pytest_cache", "temp", "bugs", "arcade/examples/platform_tutorial"]
lint.ignore = ["E731", "E741"]
lint.select = [
"E",
"F",
# Whitespace linting must be re-enabled manually for ruff
# see https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
"W"
]
[tool.mypy]
disable_error_code = "annotation-unchecked"
[tool.pytest.ini_options]
norecursedirs = ["doc", "holding", "arcade/examples", "build", ".venv", "env", "dist", "tempt"]
[tool.pyright]
include = ["arcade"]
exclude = [
"venv",
"arcade/__pyinstaller",
"arcade/examples",
"arcade/experimental",
"tests",
"doc",
"make.py"
]
typeCheckingMode = "basic"
# Use type info from pytiled_parser and pyglet, which do not ship `py.typed` file
useLibraryCodeForTypes = true
reportMissingTypeStubs = "none"
# Ignore diagnostics about values that might be `None`
reportOptionalCall = "none"
reportOptionalContextManager = "none"
reportOptionalIterable = "none"
reportOptionalMemberAccess = "none"
reportOptionalOperand = "none"
reportOptionalSubscript = "none"
[tool.coverage.run]
source = ["arcade"]
omit = ["./arcade/examples/*", "./arcade/gui/examples/*", "./arcade/experimental/*", "./env/*", "./tests/*", "./doc/*", "./Win*/*"]
[[tool.mypy.overrides]]
module = "pyglet.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "PIL.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pymunk.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pytiled_parser.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "PyInstaller.*"
ignore_missing_imports = true