-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (67 loc) · 2.47 KB
/
Copy pathpyproject.toml
File metadata and controls
85 lines (67 loc) · 2.47 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
[project]
name = "terrain-diffusion"
version = "0.1.0"
description = "Reproduction of InfiniteDiffusion: seamless, infinite, seed-determined terrain generation."
readme = "README.md"
requires-python = ">=3.14"
# Packages the project itself needs in order to run
# TODO: add entries here as the project starts needing them,
# then run `uv sync` to install and update uv.lock
dependencies = [
"coveralls>=4.1.0",
"numpy>=2.5.2",
]
# The commands the project installs. `uv run terrain-diffusion` runs main() in
# src/terrain_diffusion/cli.py.
[project.scripts]
terrain-diffusion = "terrain_diffusion.cli:main"
[dependency-groups]
dev = [
"pytest>=8.3",
"ruff>=0.9",
"pytest-mock>=3.15.1",
]
# ---------------------------------------------------------------------------
# packaging: how the code under src/ becomes an installable package
# ---------------------------------------------------------------------------
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/terrain_diffusion"]
# ---------------------------------------------------------------------------
# ruff: formats code and checks it for mistakes
# ---------------------------------------------------------------------------
[tool.ruff]
line-length = 100
target-version = "py314"
extend-exclude = ["*.md"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors: spacing and layout problems
"W", # pycodestyle warnings: trailing whitespace and similar
"F", # pyflakes: unused imports, undefined names, real mistakes
"I", # isort: keeps imports in a consistent order
"UP", # pyupgrade: flags outdated Python syntax
"B", # flake8-bugbear: common bug patterns
]
ignore = [
"E501", # ignore line length complains since formatter decides
]
# ---------------------------------------------------------------------------
# pytest: finds and runs the tests
# ---------------------------------------------------------------------------
[tool.pytest.ini_options]
# raise malformed pytest @ marks or config as errors
addopts = "--strict-markers --strict-config"
markers = [
"slow: use for slow tests, runs on /test slow comment",
"gpu: use for GPU tests, runs on /test gpu comment",
]
# ---------------------------------------------------------------------------
# coverage: ignore specific files
# ---------------------------------------------------------------------------
[tool.coverage.run]
omit = [
# add omissions here
]