-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (131 loc) · 3.51 KB
/
pyproject.toml
File metadata and controls
152 lines (131 loc) · 3.51 KB
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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "gdrepl"
dynamic = ["version"]
description = "Proof of concept REPL for Godot's GDScript"
readme = "README.md"
license = "MIT"
authors = [
{ name = "Matheus Fillipe", email = "mattf@tilde.club" }
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Environment :: Console",
"Intended Audience :: Developers",
"Topic :: Software Development :: Interpreters",
]
keywords = ["godot", "gdscript", "repl", "interpreter", "gamedev"]
dependencies = [
"pexpect>=4.9",
"prompt-toolkit>=3.0",
"click>=8.1",
"click-default-group>=1.2",
"websocket-client>=1.7",
"Pygments>=2.17",
"PyYAML>=6.0",
]
[project.urls]
Homepage = "https://github.com/matheusfillipe/GDScript-REPL"
Repository = "https://github.com/matheusfillipe/GDScript-REPL"
Issues = "https://github.com/matheusfillipe/GDScript-REPL/issues"
[project.scripts]
gdrepl = "gdrepl.main:cli"
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
[tool.hatch.build.hooks.vcs]
version-file = "gdrepl/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"/gdrepl",
"/README.md",
"/LICENSE.md",
]
[tool.hatch.build.targets.wheel]
packages = ["gdrepl"]
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-mock>=3.14",
"ruff>=0.8",
"mypy>=1.13",
"pre-commit>=4.0",
"pytest-timeout>=2.4.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"slow: marks tests as slow (e2e tests with Godot)",
]
timeout = 300
addopts = "-v --tb=short"
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"UP", # pyupgrade (modern Python syntax)
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
ignore = []
[tool.ruff.lint.isort]
force-single-line = true
lines-after-imports = 2
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.mypy]
python_version = "3.9"
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = false
strict_equality = true
ignore_missing_imports = true
exclude = ["irc_bot/", "tests/"]
check_untyped_defs = false
# Gradually enable strict typing for new modules only
[[tool.mypy.overrides]]
module = "gdrepl.config"
disallow_untyped_defs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "gdrepl.history"
disallow_untyped_defs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "gdrepl.styles"
disallow_untyped_defs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "gdrepl.ui"
disallow_untyped_defs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "gdrepl.keybindings"
disallow_untyped_defs = true
warn_unused_ignores = true