Skip to content

Commit

Permalink
chore: some minor updates (#1051)
Browse files Browse the repository at this point in the history
A few things I noticed that can be updated. Modern version of ruff can
auto-detect `src` layout. scikit-build-core 0.10+ can read the min
version from the `build-system.requires` table.
  • Loading branch information
henryiii authored Oct 10, 2024
1 parent d715d0d commit 8202577
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["scikit-build-core[pyproject]>=0.5", "pybind11>=2.12"]
requires = ["scikit-build-core>=0.10", "pybind11>=2.12"]
build-backend = "scikit_build_core.build"

[project]
Expand Down Expand Up @@ -73,7 +73,7 @@ doc = [
]

[tool.scikit-build]
minimum-version = "0.5"
minimum-version = "build-system.requires"
build-dir = "build/{wheel_tag}"
sdist.exclude = ["extern/root"]
sdist.include = ["extern/root/math/minuit2/inc", "extern/root/math/minuit2/src"]
Expand All @@ -90,9 +90,6 @@ filterwarnings = [
"error::FutureWarning",
]

[tool.ruff]
src = ["src"]

[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
Expand Down

0 comments on commit 8202577

Please sign in to comment.