forked from pythonarcade/arcade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
149 lines (130 loc) · 3.9 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
[project]
name = "arcade"
description = "Arcade Game Development Library"
readme = "README.rst"
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 :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"pyglet>=2.0.8,<2.1",
"pillow~=9.5.0",
"pymunk~=6.5.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]
dev = [
"pytest",
"mypy",
"ruff",
"coverage",
"coveralls",
"pytest-mock",
"pytest-cov",
"pygments==2.15.1",
"docutils==0.19",
"furo",
"pyright",
"pyyaml==6.0",
"sphinx==7.0.1",
"sphinx-autobuild==2021.3.14",
"sphinx-copybutton==0.5.2",
# Intentionally kept at 2.3 until this bugfix is published: https://github.com/jdillard/sphinx-sitemap/pull/62
"sphinx-sitemap==2.5.0",
"typer[all]==0.7.0",
"wheel",
]
[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
ignore = ["F811", "E731", "E741"]
show-source = true
line-length = 120
exclude = ["venv", ".venv*", "tests", "build", "doc", "util", ".mypy_cache", ".pytest_cache", "temp", "bugs"]
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