Skip to content

Commit

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

updates:
- [github.com/psf/black: 23.3.0 → 23.7.0](psf/black@23.3.0...23.7.0)
- [github.com/asottile/blacken-docs: 1.14.0 → 1.15.0](adamchainz/blacken-docs@1.14.0...1.15.0)
- [github.com/astral-sh/ruff-pre-commit: v0.0.276 → v0.0.277](astral-sh/ruff-pre-commit@v0.0.276...v0.0.277)

* Update .pre-commit-config.yaml

* Update .pre-commit-config.yaml

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

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

---------

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 Jul 16, 2023
1 parent f1e968a commit bd8802f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ repos:
- id: fix-smartquotes

- repo: https://github.com/psf/black
rev: "23.3.0" # Keep in sync with blacken-docs
rev: "23.7.0" # Keep in sync with blacken-docs
hooks:
- id: black
exclude: ^docs/conf\.py$

- repo: https://github.com/asottile/blacken-docs
rev: 1.14.0
rev: 1.15.0
hooks:
- id: "blacken-docs"
additional_dependencies:
- black==23.1.0 # keep in sync with black hook
- black==23.7.0 # keep in sync with black hook

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.276
rev: v0.0.278
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
2 changes: 1 addition & 1 deletion skbuild/setuptools_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _parse_setuptools_arguments(
names = ", ".join(plat_names)
msg = f"--plat-name is ambiguous: {names}"
raise SKBuildError(msg)
plat_name = list(plat_names)[0]
plat_name = next(iter(plat_names))

build_ext_cmd = dist.get_command_obj("build_ext")
build_ext_inplace: bool = getattr(build_ext_cmd, "inplace", False)
Expand Down

0 comments on commit bd8802f

Please sign in to comment.