diff options
| author | 2023-08-13 15:38:51 +0100 | |
|---|---|---|
| committer | 2023-08-13 18:26:37 +0100 | |
| commit | fe4e3f28f939f3945f2b051c0cab4bb955118c02 (patch) | |
| tree | 98fca0d2a00905f22f153747ee5bcd1c379f921d | |
| parent | Move requirements to poetry (diff) | |
Update pre-commit config
| -rw-r--r-- | .pre-commit-config.yaml | 40 | 
1 files changed, 20 insertions, 20 deletions
| diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 67f6541..477dcc3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,21 +1,21 @@  repos: -  - repo: https://github.com/pre-commit/pre-commit-hooks -    rev: v2.5.0 -    hooks: -      - id: check-merge-conflict -      - id: check-toml -      - id: check-yaml -      - id: end-of-file-fixer -      - id: trailing-whitespace -        args: [--markdown-linebreak-ext=md] -  - repo: local -    hooks: -      - id: ansible-lint -        name: ansible-lint -        args: [--offline] -        description: This hook runs ansible-lint within our project's environment. -        entry: ansible-lint -        language: system -        pass_filenames: false -        always_run: true -        require_serial: true +- repo: https://github.com/pre-commit/pre-commit-hooks +  rev: v4.4.0 +  hooks: +    - id: check-merge-conflict +    - id: check-toml +    - id: check-yaml +    - id: end-of-file-fixer +    - id: trailing-whitespace +      args: [--markdown-linebreak-ext=md] + +- repo: local +  hooks: +    - id: ruff +      name: ruff +      description: Run ruff linting +      entry: poetry run ruff check --force-exclude +      language: system +      'types_or': [python, pyi] +      require_serial: true +      args: [--fix, --exit-non-zero-on-fix] | 
