Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Flake8 E721 errors #5408

Merged

Conversation

trexfeathers
Copy link
Contributor

🚀 Pull Request

Description

Fixes to avoid E721 in #5406.


Consult Iris pull request check list

@trexfeathers trexfeathers changed the title Switch to isinstance(). Fix Flake8 E721 errors Aug 1, 2023
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Patch coverage: 50.00% and no project coverage change.

Comparison is base (56f6c4b) 89.37% compared to head (11cc8c3) 89.37%.

Additional details and impacted files
@@                     Coverage Diff                      @@
##           pre-commit-ci-update-config    #5408   +/-   ##
============================================================
  Coverage                        89.37%   89.37%           
============================================================
  Files                               89       89           
  Lines                            22440    22440           
  Branches                          5380     5380           
============================================================
  Hits                             20055    20055           
  Misses                            1639     1639           
  Partials                           746      746           
Files Changed Coverage Δ
lib/iris/cube.py 90.51% <0.00%> (ø)
lib/iris/_constraints.py 89.01% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bjlittle bjlittle self-requested a review August 1, 2023 11:36
Copy link
Member

@bjlittle bjlittle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, nice one! Thanks @trexfeathers

We should also look into using https://github.com/asottile/pyupgrade to catch these sort of syntax changes.

@bjlittle bjlittle merged commit 71665aa into SciTools:pre-commit-ci-update-config Aug 1, 2023
17 checks passed
trexfeathers added a commit that referenced this pull request Aug 1, 2023
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0)

* Switch to isinstance(). (#5408)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Martin Yeo <[email protected]>
@trexfeathers
Copy link
Contributor Author

Thanks @bjlittle! Iris is now Flake8 6.1 compliant 😃

@trexfeathers trexfeathers deleted the pre-commit-fixes branch May 3, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants