Skip to content

Commit

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

updates:
- [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](asottile/pyupgrade@v3.9.0...v3.10.1)
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0)

* Ignore E721

---------

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 Aug 2, 2023
1 parent 63cc114 commit ff714fd
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -47,7 +47,7 @@ repos:
args: [--license-filepath, .github/disclaimer.txt, --no-extra-eol]
exclude: ^conda_build/version.py
- repo: https://github.com/asottile/pyupgrade
rev: v3.9.0
rev: v3.10.1
hooks:
# upgrade standard Python codes
- id: pyupgrade
Expand All @@ -69,7 +69,7 @@ repos:
- id: blacken-docs
additional_dependencies: [black]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
# lint Python codes
- id: flake8
2 changes: 1 addition & 1 deletion conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ def islist(arg, uniform=False, include_dict=True):
# 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
uniform = lambda e: type(e) == etype # noqa: E721

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

0 comments on commit ff714fd

Please sign in to comment.