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

[pre-commit.ci] pre-commit autoupdate #862

Merged
merged 4 commits into from
Apr 4, 2023

Conversation

updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](psf/black@23.1.0...23.3.0)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.259 → v0.0.260](astral-sh/ruff-pre-commit@v0.0.259...v0.0.260)
- [github.com/abravalheri/validate-pyproject: v0.12.1 → v0.12.2](abravalheri/validate-pyproject@v0.12.1...v0.12.2)
- [github.com/nbQA-dev/nbQA: 1.6.4 → 1.7.0](nbQA-dev/nbQA@1.6.4...1.7.0)
@codecov
Copy link

codecov bot commented Apr 4, 2023

Codecov Report

Merging #862 (84a4b2a) into master (ae16d42) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #862   +/-   ##
=======================================
  Coverage   96.47%   96.47%           
=======================================
  Files          95       95           
  Lines        6238     6238           
=======================================
  Hits         6018     6018           
  Misses        220      220           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions
Copy link

github-actions bot commented Apr 4, 2023

Test Results

2 187 tests  ±0   2 186 ✔️ ±0   2m 35s ⏱️ - 1m 21s
       1 suites ±0          1 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit 84a4b2a. ± Comparison against base commit ae16d42.

♻️ This comment has been updated with latest results.

@marscher
Copy link
Contributor

marscher commented Apr 4, 2023

I'm in favor of ignoring B018 Found useless expression. Either assign it to a variable or remove it. inside the tutorials dir.

@CagtayFabry
Copy link
Member

I'm in favor of ignoring B018 Found useless expression. Either assign it to a variable or remove it. inside the tutorials dir.

yes if we can ignore that for the tutorials / tests that would be great

Comment on lines +232 to +235
[tool.nbqa.addopts]
ruff = [
"--extend-ignore=B018"
]
Copy link
Member

Choose a reason for hiding this comment

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

I don't know how to add per-file-ignore for nbqa (see nbQA-dev/nbQA#730) but I think this does the same since we only have notebooks in the tutorials @marscher

@CagtayFabry CagtayFabry requested a review from marscher April 4, 2023 13:17
@@ -233,7 +233,7 @@ def test_operation_on_closed(self):

# cannot access closed handles
with pytest.raises(RuntimeError):
self.fh.file_handle
self.fh.file_handle # noqa: B018
Copy link
Contributor

Choose a reason for hiding this comment

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

we should report this as false positive to the Ruff repo, IMO.

@marscher marscher enabled auto-merge April 4, 2023 16:00
@CagtayFabry CagtayFabry disabled auto-merge April 4, 2023 18:08
@CagtayFabry CagtayFabry merged commit 91140eb into master Apr 4, 2023
@CagtayFabry CagtayFabry deleted the pre-commit-ci-update-config branch April 4, 2023 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants