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

Only pull docker daemon proxy image in tests #155

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

shanejbrown
Copy link
Contributor

@shanejbrown shanejbrown commented Aug 21, 2024

What does this PR do?

What issues does this PR fix or reference?

Previous Behavior

New Behavior

Merge requirements satisfied?

  • I have updated the documentation or no documentation changes are required.
  • I have added tests to cover my changes.
  • I have updated the base version in setup.py (if appropriate).

@@ -1,3 +1,5 @@
from buildrunner.docker.daemon import DAEMON_IMAGE_NAME
from buildrunner import docker as buildrunner_docker
Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed with # noqa: E402

@shanejbrown shanejbrown merged commit 9f5462e into adobe:main Aug 21, 2024
9 checks passed
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.

2 participants