-
Notifications
You must be signed in to change notification settings - Fork 131
infra: replace flake8 with ruff #565
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
Changes from 1 commit
dd1471d
3523ae3
48a4981
41d5b9d
9b7d218
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
from setuptools.build_meta import build_sdist, build_wheel # noqa: F401 | ||
from setuptools.build_meta import build_sdist as build_sdist | ||
from setuptools.build_meta import build_wheel as build_wheel |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,7 +124,7 @@ def test_build(monkeypatch, project, args, call, tmp_path): | |
|
||
def test_isolation(tmp_dir, package_test_flit, mocker): | ||
try: | ||
import flit_core # noqa: F401 | ||
import flit_core # noqa: F401 # imported but unused | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious, would There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess the correct way to do this would be checking There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It does not. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could try adding There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And you wouldn’t need an else block for the del. It’s never used, so it could be in the try. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You'd just need to reference it; There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @henryiii yep, using importlib is certainly better, but I was suggesting to use the fact that the else-block is already present, w/o much refactoring. |
||
except ModuleNotFoundError: | ||
pass | ||
else: | ||
|
Uh oh!
There was an error while loading. Please reload this page.