Skip to content

Commit

Permalink
replace linters with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
gruebel committed Jul 8, 2024
1 parent c0e90b5 commit cd3004d
Show file tree
Hide file tree
Showing 33 changed files with 647 additions and 1,117 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/update_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

from policy_sentry.command.initialize import initialize

if __name__ == '__main__':
if __name__ == "__main__":
initialize(None, True, True)
11 changes: 4 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/rhysd/actionlint
rev: v1.6.26
rev: v1.7.1
hooks:
- id: actionlint-docker
- repo: https://github.com/antonbabenko/pre-commit-terraform
Expand All @@ -10,12 +10,9 @@ repos:
# - id: terraform_docs
# args: ['--sort-by-required', '--no-providers']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.6
rev: v0.5.1
hooks:
- id: ruff
files: ^policy_sentry/
- id: ruff-format
files: ^policy_sentry/
- repo: https://github.com/asottile/pyupgrade
rev: v3.11.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
Loading

0 comments on commit cd3004d

Please sign in to comment.