Skip to content

Commit f69d324

Browse files
committed
Ignored E252 error, minor flake8 fixes
1 parent 20ec9a3 commit f69d324

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.flake8

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[flake8]
22
max-line-length = 120
3+
ignore =
4+
E252

arca/backend/base.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ def get_setting(self, key, default=NOT_SET):
9292
def hash_file_contents(requirements_option: RequirementsOptions, path: Path) -> str:
9393
""" Returns a SHA256 hash of the contents of ``path`` combined with the Arca version.
9494
"""
95-
return hashlib.sha256(path.read_bytes() +
96-
bytes(requirements_option.name + arca.__version__, "utf-8")).hexdigest()
95+
return hashlib.sha256(path.read_bytes() + bytes(
96+
requirements_option.name + arca.__version__, "utf-8"
97+
)).hexdigest()
9798

9899
def get_requirements_information(self, path: Path) -> Tuple[RequirementsOptions, Optional[str]]:
99100
"""

arca/backend/vagrant.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ def run_script(container_name, definition_filename, image_name, image_tag, repos
184184

185185
api.run(f"docker cp /vagrant/{definition_filename} {container_name}:/srv/scripts/")
186186

187-
output = api.run(" ".join([
187+
output = api.run(
188+
" ".join([
188189
"docker", "exec", container_name,
189190
"python", "/srv/scripts/runner.py", f"/srv/scripts/{definition_filename}",
190191
]),

arca/result.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, result: Union[str, Dict[str, Any]]) -> None:
1717
raise BuildError("The build failed (the output was corrupted, "
1818
"possibly by the callable printing something)",
1919
extra_info={
20-
"output": output
20+
"output": output
2121
})
2222

2323
if not isinstance(result, dict):

0 commit comments

Comments
 (0)