Skip to content

Commit 299fd4f

Browse files
committed
docs(lint): sync CI and local pre-commit
1 parent 34f842b commit 299fd4f

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

.pre-commit-config.yaml

+32-27
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,35 @@
44
# All checks can be run locally via `make pr`
55

66
repos:
7-
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v2.4.0
9-
hooks:
10-
- id: check-merge-conflict
11-
- id: trailing-whitespace
12-
- id: end-of-file-fixer
13-
- id: check-toml
14-
- repo: local
15-
hooks:
16-
- id: black
17-
name: formatting::black
18-
entry: poetry run black
19-
language: system
20-
types: [python]
21-
- id: isort
22-
name: formatting::isort
23-
entry: poetry run isort
24-
language: system
25-
types: [python]
26-
- repo: local
27-
hooks:
28-
- id: flake8
29-
name: linting::flake8
30-
entry: poetry run flake8
31-
language: system
32-
types: [python]
33-
exclude: example
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v2.4.0
9+
hooks:
10+
- id: check-merge-conflict
11+
- id: trailing-whitespace
12+
- id: end-of-file-fixer
13+
- id: check-toml
14+
- repo: local
15+
hooks:
16+
- id: black
17+
name: formatting::black
18+
entry: poetry run black
19+
language: system
20+
types: [python]
21+
- id: isort
22+
name: formatting::isort
23+
entry: poetry run isort
24+
language: system
25+
types: [python]
26+
- repo: local
27+
hooks:
28+
- id: flake8
29+
name: linting::flake8
30+
entry: poetry run flake8
31+
language: system
32+
types: [python]
33+
exclude: example
34+
- repo: https://github.com/igorshubovych/markdownlint-cli
35+
rev: "11c08644ce6df850480d98f628596446a526cbc6" # frozen: v0.31.1
36+
hooks:
37+
- id: markdownlint
38+
args: ["--fix"]

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ lint: format
1717
poetry run flake8 aws_lambda_powertools/* tests/*
1818

1919
lint-docs:
20-
docker run -v ${PWD}:/markdown 06kellyjac/markdownlint-cli:0.28.1-alpine "docs"
20+
docker run -v ${PWD}:/markdown 06kellyjac/markdownlint-cli "docs"
2121

2222
lint-docs-fix:
23-
docker run -v ${PWD}:/markdown 06kellyjac/markdownlint-cli:0.28.1-alpine --fix "docs"
23+
docker run -v ${PWD}:/markdown 06kellyjac/markdownlint-cli --fix "docs"
2424

2525
test:
2626
poetry run pytest -m "not perf" --cov=aws_lambda_powertools --cov-report=xml

0 commit comments

Comments
 (0)