-
Notifications
You must be signed in to change notification settings - Fork 16
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
Only pull docker daemon proxy image in tests #155
Conversation
tests/test_runner.py
Outdated
@@ -1,3 +1,5 @@ | |||
from buildrunner.docker.daemon import DAEMON_IMAGE_NAME | |||
from buildrunner import docker as buildrunner_docker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ordering of these imports seems strange to me. But Ruff forced me to put these at the top.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhh, that's definitely wrong, why would ruff tell you that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# noqa: E402
to the rescue.
import os | ||
import sys | ||
import docker.errors | ||
|
||
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), ".."))) | ||
|
||
import buildrunner.config.loader # noqa: E402 | ||
from buildrunner.docker.daemon import DAEMON_IMAGE_NAME # noqa: E402 | ||
from buildrunner import docker as buildrunner_docker # noqa: E402 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with # noqa: E402
What does this PR do?
What issues does this PR fix or reference?
Previous Behavior
New Behavior
Merge requirements satisfied?
setup.py
(if appropriate).