Skip to content

Commit

Permalink
Ignored E252 error, minor flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikicz committed Nov 16, 2018
1 parent 20ec9a3 commit f69d324
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[flake8]
max-line-length = 120
ignore =
E252
5 changes: 3 additions & 2 deletions arca/backend/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ def get_setting(self, key, default=NOT_SET):
def hash_file_contents(requirements_option: RequirementsOptions, path: Path) -> str:
""" Returns a SHA256 hash of the contents of ``path`` combined with the Arca version.
"""
return hashlib.sha256(path.read_bytes() +
bytes(requirements_option.name + arca.__version__, "utf-8")).hexdigest()
return hashlib.sha256(path.read_bytes() + bytes(
requirements_option.name + arca.__version__, "utf-8"
)).hexdigest()

def get_requirements_information(self, path: Path) -> Tuple[RequirementsOptions, Optional[str]]:
"""
Expand Down
3 changes: 2 additions & 1 deletion arca/backend/vagrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def run_script(container_name, definition_filename, image_name, image_tag, repos

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

output = api.run(" ".join([
output = api.run(
" ".join([
"docker", "exec", container_name,
"python", "/srv/scripts/runner.py", f"/srv/scripts/{definition_filename}",
]),
Expand Down
2 changes: 1 addition & 1 deletion arca/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, result: Union[str, Dict[str, Any]]) -> None:
raise BuildError("The build failed (the output was corrupted, "
"possibly by the callable printing something)",
extra_info={
"output": output
"output": output
})

if not isinstance(result, dict):
Expand Down

0 comments on commit f69d324

Please sign in to comment.