Skip to content

Commit

Permalink
chore(deps): update pre-commit hooks (#440)
Browse files Browse the repository at this point in the history
<!--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 <HenrySchreinerIII@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and henryiii committed Jul 27, 2023
1 parent f4ebabd commit 0813be0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ repos:
exclude: "^tests"

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.278
rev: v0.0.280
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
2 changes: 1 addition & 1 deletion src/scikit_build_core/build/sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def build_sdist(
)
paths = sorted(
each_unignored_file(
Path("."),
Path(),
include=settings.sdist.include,
exclude=settings.sdist.exclude,
)
Expand Down
2 changes: 1 addition & 1 deletion src/scikit_build_core/build/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _get_packages(

# Auto package discovery
packages = []
for base_path in (Path("src"), Path(".")):
for base_path in (Path("src"), Path()):
path = base_path / name
if path.is_dir() and (
(path / "__init__.py").is_file() or (path / "__init__.pyi").is_file()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_file_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_on_each_with_symlink(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -
pytest.skip("Windows symlink support not available")

# Test that each_unignored_file() follows the symlink
assert sorted(each_unignored_file(Path("."))) == [
assert sorted(each_unignored_file(Path())) == [
gitignore,
exposed_symlink / "file2",
file1,
Expand Down

0 comments on commit 0813be0

Please sign in to comment.