Skip to content

Commit b755db2

Browse files
committed
Format + bump pre-commit ruff
1 parent 5b39e25 commit b755db2

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

.pre-commit-config.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ repos:
22
- repo: https://github.com/golangci/golangci-lint
33
rev: v1.55.2
44
hooks:
5-
- id: golangci-lint
5+
- id: golangci-lint
66
- repo: local
77
hooks:
8-
- id: pyright
9-
name: pyright
10-
entry: pyright
11-
language: system # Use local install for pyright, else we cannot import the requirements and we get errors on external libraries
12-
'types_or': [python, pyi]
13-
require_serial: true
14-
additional_dependencies: []
15-
minimum_pre_commit_version: '2.9.2'
8+
- id: pyright
9+
name: pyright
10+
entry: pyright
11+
language: system # Use local install for pyright, else we cannot import the requirements and we get errors on external libraries
12+
"types_or": [python, pyi]
13+
require_serial: true
14+
additional_dependencies: []
15+
minimum_pre_commit_version: "2.9.2"
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.3.5
17+
rev: v0.12.2
1818
hooks:
1919
- id: ruff
20-
args: [ --fix ]
20+
args: [--fix]
2121
- id: ruff-format
2222
- repo: https://github.com/jendrikseipp/vulture
23-
rev: 'v2.3'
23+
rev: "v2.3"
2424
hooks:
2525
- id: vulture
2626
- repo: local
@@ -34,7 +34,7 @@ repos:
3434
- id: protected-branches
3535
name: protected-branches
3636
description: checks that the commit isn't created on a protected branch
37-
entry: 'inv ci.check-protected-branch'
37+
entry: "inv ci.check-protected-branch"
3838
language: system
3939
pass_filenames: false
4040
stages: [pre-commit, pre-push]

tasks/deploy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ def check_s3_image_exists(_, pipeline_id: str, deploy_job: str):
119119
response = s3.list_objects_v2(Bucket=bucket, Prefix=path)
120120
exists = "Contents" in response
121121

122-
assert exists, f"Latest job {deploy_job} is outdated, use `inv retry-job {pipeline_id} {deploy_job}` to run it again or use --no-verify to force deploy"
122+
assert exists, (
123+
f"Latest job {deploy_job} is outdated, use `inv retry-job {pipeline_id} {deploy_job}` to run it again or use --no-verify to force deploy"
124+
)
123125

124126

125127
# creates a stack with the given stack_name if it doesn't already exists

0 commit comments

Comments
 (0)