Skip to content

Commit bd39320

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 34399f8 commit bd39320

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

repo2docker/__main__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get_argparser():
141141
argparser.add_argument(
142142
"--build-memory-limit",
143143
# Removed argument, but we still want to support printing an error message if this is passed
144-
help=argparse.SUPPRESS
144+
help=argparse.SUPPRESS,
145145
)
146146

147147
argparser.add_argument(
@@ -437,7 +437,10 @@ def make_r2d(argv=None):
437437
if args.build_memory_limit:
438438
# We no longer support build_memory_limit, it must be set in the builder instance
439439
print("--build-memory-limit is no longer supported", file=sys.stderr)
440-
print("Use `docker buildx create` to create a custom builder with appropriate memory limits instead", file=sys.stderr)
440+
print(
441+
"Use `docker buildx create` to create a custom builder with appropriate memory limits instead",
442+
file=sys.stderr,
443+
)
441444
sys.exit(-1)
442445

443446
if args.environment and not r2d.run:

repo2docker/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ def _default_log_level(self):
176176
@observe("build_memory_limit")
177177
def build_memory_limit_changed(self, change):
178178
print("Setting build_memory_limit is not supported", file=sys.stderr)
179-
print("Use `docker buildx create` to create a custom builder with appropriate memory limits instead", file=sys.stderr)
179+
print(
180+
"Use `docker buildx create` to create a custom builder with appropriate memory limits instead",
181+
file=sys.stderr,
182+
)
180183
sys.exit(-1)
181184

182185
volumes = Dict(

0 commit comments

Comments
 (0)