Skip to content

Commit cd3004d

Browse files
committed
replace linters with ruff
1 parent c0e90b5 commit cd3004d

33 files changed

+647
-1117
lines changed

.github/scripts/update_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
from policy_sentry.command.initialize import initialize
99

10-
if __name__ == '__main__':
10+
if __name__ == "__main__":
1111
initialize(None, True, True)

.pre-commit-config.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/rhysd/actionlint
3-
rev: v1.6.26
3+
rev: v1.7.1
44
hooks:
55
- id: actionlint-docker
66
- repo: https://github.com/antonbabenko/pre-commit-terraform
@@ -10,12 +10,9 @@ repos:
1010
# - id: terraform_docs
1111
# args: ['--sort-by-required', '--no-providers']
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.4.6
13+
rev: v0.5.1
1414
hooks:
15+
- id: ruff
16+
files: ^policy_sentry/
1517
- id: ruff-format
1618
files: ^policy_sentry/
17-
- repo: https://github.com/asottile/pyupgrade
18-
rev: v3.11.0
19-
hooks:
20-
- id: pyupgrade
21-
args: ["--py37-plus"]

0 commit comments

Comments
 (0)