Skip to content

Commit

Permalink
Merge pull request #1007 from Wuestengecko/pre-commit-black
Browse files Browse the repository at this point in the history
Update pre-commit black
  • Loading branch information
MoritzWeber0 authored Sep 11, 2023
2 parents bc2be46 + 1c6ad65 commit 803fd4e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ repos:
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.12.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
hooks:
- id: black
files: "^backend/"
Expand Down
1 change: 1 addition & 0 deletions backend/capellacollab/config/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
pathlib.Path(__file__).parents[2] / "config" / "config_template.yaml",
]


# https://gist.github.com/pypt/94d747fe5180851196eb?permalink_comment_id=4015118#gistcomment-4015118
class UniqueKeyLoader(yaml.SafeLoader):
def construct_mapping(self, node, deep=False):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def get_artifact_from_job(
def get_last_updated_for_file_path(
self, project_id: str, file_path: str, revision: str | None
) -> datetime.datetime | None:

response = requests.get(
f"{self.git_instance.api_url}/repos/{project_id}/commits?path={file_path}&sha={revision or self.git_model.revision}",
headers=self.__get_headers(self.git_model.password)
Expand Down
1 change: 0 additions & 1 deletion backend/tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


def test_metrics_endpoint(client: testclient.TestClient):

response = client.get("/metrics")

assert response.status_code == 200
Expand Down

0 comments on commit 803fd4e

Please sign in to comment.