Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (scikit-build#980)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.265 → v0.0.267](astral-sh/ruff-pre-commit@v0.0.265...v0.0.267)
- [github.com/pre-commit/mirrors-mypy: v1.2.0 → v1.3.0](pre-commit/mirrors-mypy@v1.2.0...v1.3.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update __init__.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update tests/test_command_line.py

* Update skbuild/utils/__init__.py

---------

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 authored May 16, 2023
1 parent b15e568 commit b53bd6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repos:
- black==23.1.0 # keep in sync with black hook

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.265
rev: v0.0.267
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -65,7 +65,7 @@ repos:
- hatchling

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.2.0"
rev: "v1.3.0"
hooks:
- id: mypy
files: ^(skbuild) # TODO: add |tests
Expand Down
2 changes: 2 additions & 0 deletions skbuild/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ class PythonModuleFinder(distutils_build_py):
provides a specialized version of ``find_all_modules()``.
"""

distribution: Distribution # type: ignore[assignment]

# pylint: disable-next=super-init-not-called
def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_cmake_initial_cache_as_global_option(tmpdir):
initial_cache.write("""set(MY_CMAKE_VARIABLE "1" CACHE BOOL "My cache variable")""")

try:
with execute_setup_py(tmpdir, [f"-C{str(initial_cache)}", "build"], disable_languages_test=True):
with execute_setup_py(tmpdir, [f"-C{initial_cache}", "build"], disable_languages_test=True):
pass
except SystemExit as exc:
assert exc.code == 0 # noqa: PT017
Expand Down

0 comments on commit b53bd6b

Please sign in to comment.