Skip to content
Snippets Groups Projects
Commit 9bb8186d authored by Alexander Heidelbach's avatar Alexander Heidelbach
Browse files

Update pre commit hook

parent e7cb519e
Branches
No related tags found
No related merge requests found
# basic checks
repos:
- repo: https://github.com/python/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.8
args: ["--safe", "-l", "120", "-t", "py36"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v3.4.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: detect-private-key
- id: end-of-file-fixer
exclude_types: ["jupyter", "c++", "diff"]
- id: trailing-whitespace
exclude_types: ["jupyter", "c++", "diff"]
- id: check-json
- id: check-merge-conflict
- id: check-ast
- id: debug-statements
- repo: https://github.com/PyCQA/flake8
rev: "3.9.0"
hooks:
- id: flake8
exclude_types: ["jupyter", "c++", "diff"]
args: ["--max-line-length=120", "--ignore=W503,W605,E712,E203"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-ast
- id: check-yaml
- id: check-json
- id: check-toml
- id: trailing-whitespace
- id: check-added-large-files
- id: check-symlinks
- id: no-commit-to-branch
- id: end-of-file-fixer
exclude: ^tests/batch/_gbasf2_project_download_stdouts/
- id: fix-byte-order-marker
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.812"
rev: "v1.10.1"
hooks:
- id: mypy
args: ["--namespace-packages", "--explicit-package-bases", "--ignore-missing-imports"]
exclude: ^src/alpstrahlung/online_analysis/mc_production/model/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment