Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (conda#5408)
Browse files Browse the repository at this point in the history
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.5.2](astral-sh/ruff-pre-commit@v0.5.1...v0.5.2)
- [github.com/macisamuele/language-formatters-pre-commit-hooks: v2.13.0 → v2.14.0](macisamuele/language-formatters-pre-commit-hooks@v2.13.0...v2.14.0)
- [github.com/python-jsonschema/check-jsonschema: 0.28.6 → 0.29.0](python-jsonschema/check-jsonschema@0.28.6...0.29.0)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
  • Loading branch information
pre-commit-ci[bot] and kenodegard authored Jul 16, 2024
1 parent 1d771ad commit a1fe8f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ repos:
# auto format Python codes within docstrings
- id: blacken-docs
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.5.2
hooks:
# lint & attempt to correct failures (e.g. pyupgrade)
- id: ruff
args: [--fix]
# compatible replacement for black
- id: ruff-format
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.13.0
rev: v2.14.0
hooks:
- id: pretty-format-toml
args: [--autofix, --trailing-commas]
Expand All @@ -87,7 +87,7 @@ repos:
tests/
)
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.6
rev: 0.29.0
hooks:
# verify github syntaxes
- id: check-github-workflows
Expand Down
2 changes: 1 addition & 1 deletion conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ def islist(
# StopIteration: list is empty, an empty list is still uniform
return True
# check for explicit type match, do not allow the ambiguity of isinstance
uniform = lambda e: type(e) == etype # noqa: E731
uniform = lambda e: type(e) == etype # noqa: E721

try:
return all(uniform(e) for e in arg)
Expand Down

0 comments on commit a1fe8f4

Please sign in to comment.