Skip to content
Snippets Groups Projects
Commit c247d6e1 authored by Samuel Schmidt's avatar Samuel Schmidt
Browse files

updated to ruff

parent 795ec0c8
Branches
No related tags found
No related merge requests found
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.4.0
hooks: hooks:
- id: trailing-whitespace # - id: check-added-large-files # prevents giant files from being committed.
- id: end-of-file-fixer - id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
- id: check-docstring-first - id: check-merge-conflict # checks for files that contain merge conflict strings.
- repo: https://github.com/pycqa/flake8 - id: check-yaml # checks yaml files for parseable syntax.
rev: 6.0.0 - id: detect-private-key # detects the presence of private keys.
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
- id: fix-byte-order-marker # removes utf-8 byte order marker.
- id: mixed-line-ending # replaces or checks mixed line ending.
- id: trailing-whitespace # trims trailing whitespace.
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks: hooks:
- id: flake8 - id: cmake-format
- repo: https://github.com/pycqa/isort - repo: https://github.com/astral-sh/ruff-pre-commit
rev: 5.10.1 # Ruff version.
rev: v0.0.286
hooks: hooks:
- id: isort - id: ruff
name: isort (python) args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/ambv/black types_or: [python, pyi, jupyter]
rev: 22.10.0 - repo: https://github.com/ambv/black
rev: 23.7.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/PyCQA/pylint
rev: v2.17.4
hooks:
- id: pylint
args: [--disable=all, --enable=C0103, "--good-names=i,j,k,x,y,w,h,el,n"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment