Skip to content

Commit 9973e22

Browse files
committed
build(pyproject): update configuration and tool settings
- Remove trailing slashes from directory paths for consistency - Update system requirements: bump libc to version 2.42 - Add pyright and ruff configuration sections - Standardize test paths without trailing slashes These changes ensure consistent path formatting across the configuration and update system requirements to maintain compatibility with newer environments. The added tool configurations enable proper static analysis and linting for the project.
1 parent 101595d commit 9973e22

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.config/cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ words:
5050
- pypi
5151
- pyplot
5252
- pyproject
53+
- pyright
5354
- pyrightconfig
5455
- pytest
5556
- pytype

template/pyproject.toml.jinja

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ ignore = ["W002"]
7272

7373
[tool.coverage.run]
7474
branch = true
75-
source = ["src/"]
75+
source = ["src"]
7676

7777
[tool.hatch.build.hooks.vcs]
7878
version-file = "src/{{ package_dir }}/_version.py"
7979

8080
[tool.hatch.build.targets.sdist]
81-
only-include = ["src/"]
81+
only-include = ["src"]
8282

8383
[tool.hatch.build.targets.wheel]
84-
packages = ["src/{{ wheel_package_dir }}/"]
84+
packages = ["src/{{ wheel_package_dir }}"]
8585

8686
[tool.hatch.version]
8787
source = "vcs"
@@ -100,13 +100,20 @@ platforms = ["linux-64"]
100100

101101
[tool.pixi.system-requirements]
102102
cuda = "12"
103-
libc = { family = "glibc", version = "2.41" }
103+
libc = { family = "glibc", version = "2.42" }
104104
linux = "6.12"
105105
# %% endif
106106

107+
[tool.pyright]
108+
exclude = ["**/.*", "**/__pycache__", "**/marimo", "**/node_modules"]
109+
extends = ".config/linters/pyrightconfig.json"
110+
107111
[tool.pytest.ini_options]
108112
addopts = ["--showlocals", "--strict-config", "--strict-markers"]
109-
testpaths = ["benches/", "tests/"]
113+
testpaths = ["benches", "tests"]
114+
115+
[tool.ruff]
116+
extend = ".config/linters/.ruff.toml"
110117

111118
# %% if package_manager == "uv":
112119
[tool.uv]

0 commit comments

Comments
 (0)