forked from ran-isenberg/aws-lambda-handler-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
34 lines (34 loc) · 1.08 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
name: Ensure that code don't have trailing whitespace
- id: check-ast
name: Check python abstract syntax trees
- id: check-case-conflict
name: Check for case conflicts
- id: check-json
name: Check JSON files format
- id: check-shebang-scripts-are-executable
name: Check that scripts with shebangs are executable
- id: check-merge-conflict
name: Check for merge conflicts in code
- id: end-of-file-fixer
name: Files should end with empty line
exclude: ".json"
- id: double-quote-string-fixer
name: Strings should be single quoted
- id: name-tests-test
name: Tests should begin with test_
args: ["--django"]
exclude: "^(?!helpers/)"
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.7
hooks:
# Run the Ruff linter.
- id: ruff
# Run the Ruff formatter.
- id: ruff-format