Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored May 2, 2024
1 parent d74cf30 commit 72df85b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repos:
args: ["--config=mlc-config.json"]

- repo: https://github.com/psf/black
rev: 24.4.0
rev: 24.4.2
hooks:
- id: black

Expand All @@ -55,7 +55,7 @@ repos:
additional_dependencies: [black==22.3.0]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.4.1'
rev: 'v0.4.2'
hooks:
- id: ruff
args: ["--config", "./pyproject.toml"]
Expand Down
2 changes: 1 addition & 1 deletion astronomer/providers/amazon/aws/hooks/batch_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def monitor_job(self) -> dict[str, str] | None:
else:
await self.wait_for_job(self.job_id)
await self.check_job_success(self.job_id)
success_msg = "AWS Batch job (%s) succeeded" % self.job_id
success_msg = f"AWS Batch job ({self.job_id}) succeeded"
self.log.info(success_msg)
return {"status": "success", "message": success_msg}

Expand Down
23 changes: 12 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ convention = "pep257"
[tool.ruff]
line-length = 120

# Exclude a variety of commonly ignored directories.
extend-exclude = [
"__pycache__",
"docs/conf.py",
]

target-version = "py37"
fix = true

[tool.ruff.lint]
# Enable Pyflakes `E` and `F` codes by default.
extend-select = [
"W", # pycodestyle warnings
Expand All @@ -66,19 +76,10 @@ extend-select = [
# Remove this in future
extend-ignore = ["A002", "C901", "E402", "E501", "ISC001", "ISC003", "UP030"]

# Exclude a variety of commonly ignored directories.
extend-exclude = [
"__pycache__",
"docs/conf.py",
]

target-version = "py37"
fix = true

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 6

[tool.ruff.isort]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["astronomer", "tests"]
# TODO: for now, https://github.com/charliermarsh/ruff/issues/1817
Expand Down

0 comments on commit 72df85b

Please sign in to comment.