File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- ci :
3
- skip : [hadolint-docker]
4
-
2
+ # pre-commit is a tool to perform a predefined set of tasks manually and/or
3
+ # automatically before git commits are made.
4
+ #
5
+ # Config reference: https://pre-commit.com/#pre-commit-configyaml---top-level
6
+ #
7
+ # Common tasks
8
+ #
9
+ # - Run on all files: pre-commit run --all-files
10
+ # - Register git hooks: pre-commit install --install-hooks
11
+ #
12
+ # See https://pre-commit.com for more information
13
+ # See https://pre-commit.com/hooks.html for more hooks
5
14
repos :
6
15
# Autoupdate: Python code
7
16
- repo : https://github.com/asottile/pyupgrade
@@ -40,6 +49,14 @@ repos:
40
49
hooks :
41
50
- id : prettier
42
51
52
+ # `pre-commit sample-config` default hooks
53
+ - repo : https://github.com/pre-commit/pre-commit-hooks
54
+ rev : v4.1.0
55
+ hooks :
56
+ - id : trailing-whitespace
57
+ - id : end-of-file-fixer
58
+ - id : check-added-large-files
59
+
43
60
# Lint: Dockerfile
44
61
- repo : https://github.com/hadolint/hadolint.git
45
62
rev : v2.8.0
81
98
hooks :
82
99
- id : markdownlint
83
100
args : ["--fix"]
101
+
102
+ # Docker hooks do not work in pre-commit.ci
103
+ # See: <https://github.com/pre-commit-ci/issues/issues/11>
104
+ ci :
105
+ skip : [hadolint-docker]
Original file line number Diff line number Diff line change @@ -15,4 +15,3 @@ RUN mamba install --quiet --yes \
15
15
mamba clean --all -f -y && \
16
16
fix-permissions "${CONDA_DIR}" && \
17
17
fix-permissions "/home/${NB_USER}"
18
-
You can’t perform that action at this time.
0 commit comments