Skip to content

Commit 3a0b3b9

Browse files
committed
Add lint kind with pre-commit
1 parent 5d7f9e1 commit 3a0b3b9

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

taskcluster/kinds/lint/kind.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
loader: taskgraph.loader.transform:loader
2+
transforms:
3+
- taskgraph.transforms.run
4+
- taskgraph.transforms.task
5+
kind-dependencies:
6+
- docker-image
7+
task-defaults:
8+
worker-type: b-linux
9+
worker:
10+
docker-image: {in-tree: python}
11+
max-run-time: 3600
12+
run:
13+
using: run-task
14+
cwd: '{checkout}'
15+
tasks:
16+
pre-commit:
17+
description: Check code style with pre-commit hooks
18+
run:
19+
command: >-
20+
cd bot &&
21+
pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements-dev.txt &&
22+
cd .. &&
23+
pre-commit run -a --show-diff-on-failure

0 commit comments

Comments
 (0)