Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Aug 30, 2024
1 parent 0336e6a commit 09a2ae3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rockcraft/extensions/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def _get_install_app_part(self) -> Dict[str, Any]:
# if prime is not in exclude mode, use it to generate the stage and organize
if self._app_prime and self._app_prime[0] and self._app_prime[0][0] != "-":
renaming_map = {
os.path.relpath(file, self.IMAGE_BASE_DIR): file for file in self._app_prime
os.path.relpath(file, self.IMAGE_BASE_DIR): file
for file in self._app_prime
}
else:
renaming_map = {
Expand Down Expand Up @@ -174,7 +175,9 @@ def _app_prime(self) -> list[str]:
if (self.project_root / f).exists()
]
if not self.yaml_data.get("services", {}).get("fastapi", {}).get("command"):
user_prime.append(f"{self.IMAGE_BASE_DIR}/" + self._find_asgi_location().parts[0])
user_prime.append(
f"{self.IMAGE_BASE_DIR}/" + self._find_asgi_location().parts[0]
)
return user_prime

def _asgi_path(self) -> str:
Expand Down

0 comments on commit 09a2ae3

Please sign in to comment.