Skip to content

Commit 0813be0

Browse files
chore(deps): update pre-commit hooks (#440)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.0.278 → v0.0.280](astral-sh/ruff-pre-commit@v0.0.278...v0.0.280) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent f4ebabd commit 0813be0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ repos:
5454
exclude: "^tests"
5555

5656
- repo: https://github.com/astral-sh/ruff-pre-commit
57-
rev: v0.0.278
57+
rev: v0.0.280
5858
hooks:
5959
- id: ruff
6060
args: ["--fix", "--show-fixes"]

src/scikit_build_core/build/sdist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def build_sdist(
100100
)
101101
paths = sorted(
102102
each_unignored_file(
103-
Path("."),
103+
Path(),
104104
include=settings.sdist.include,
105105
exclude=settings.sdist.exclude,
106106
)

src/scikit_build_core/build/wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _get_packages(
4343

4444
# Auto package discovery
4545
packages = []
46-
for base_path in (Path("src"), Path(".")):
46+
for base_path in (Path("src"), Path()):
4747
path = base_path / name
4848
if path.is_dir() and (
4949
(path / "__init__.py").is_file() or (path / "__init__.pyi").is_file()

tests/test_file_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_on_each_with_symlink(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -
4545
pytest.skip("Windows symlink support not available")
4646

4747
# Test that each_unignored_file() follows the symlink
48-
assert sorted(each_unignored_file(Path("."))) == [
48+
assert sorted(each_unignored_file(Path())) == [
4949
gitignore,
5050
exposed_symlink / "file2",
5151
file1,

0 commit comments

Comments
 (0)