Add some links for pre-commit and add default hooks

This commit is contained in:
Ayaz Salikhov
2022-03-14 15:42:52 +02:00
parent f2294b4288
commit 81964f1883
2 changed files with 14 additions and 4 deletions

View File

@@ -1,8 +1,16 @@
--- ---
ci: # See https://pre-commit.com for more information
skip: [hadolint-docker] # See https://pre-commit.com/hooks.html for more hooks
repos: repos:
# `pre-commit sample-config` default hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# Autoupdate: Python code # Autoupdate: Python code
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v2.31.1 rev: v2.31.1
@@ -81,3 +89,6 @@ repos:
hooks: hooks:
- id: markdownlint - id: markdownlint
args: ["--fix"] args: ["--fix"]
ci:
skip: [hadolint-docker]

View File

@@ -15,4 +15,3 @@ RUN mamba install --quiet --yes \
mamba clean --all -f -y && \ mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \ fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}" fix-permissions "/home/${NB_USER}"