Skip to content

Commit 4cce29c

Browse files
committed
Add pyproject.toml with dependencies and tool config, add .gitignore
1 parent 348f81f commit 4cce29c

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Virtual environments
2+
.venv/
3+
venv/
4+
env/
5+
6+
# Python bytecode
7+
__pycache__/
8+
*.py[cod]
9+
*.pyo
10+
11+
# Distribution / packaging
12+
dist/
13+
build/
14+
*.egg-info/
15+
*.egg
16+
17+
# Tool caches
18+
.mypy_cache/
19+
.ruff_cache/
20+
.pytest_cache/
21+
22+
# Misc
23+
*.log
24+
.DS_Store

pyproject.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[project]
2+
name = "python-tetris-game-pygame"
3+
version = "1.0.0"
4+
description = "A Tetris game built with pygame-ce"
5+
requires-python = ">=3.12"
6+
dependencies = [
7+
"pygame-ce>=2.5.0,<3.0",
8+
]
9+
10+
[project.optional-dependencies]
11+
dev = [
12+
"mypy>=1.10",
13+
"ruff>=0.4",
14+
"pytest>=8.0",
15+
]
16+
17+
[tool.ruff]
18+
line-length = 88
19+
target-version = "py312"
20+
21+
[tool.ruff.lint]
22+
select = ["E", "W", "F", "UP", "B", "I"]
23+
24+
[tool.mypy]
25+
python_version = "3.12"
26+
strict = true
27+
28+
[tool.pytest.ini_options]
29+
testpaths = ["tests"]

0 commit comments

Comments
 (0)