File: .pre-commit-config.yaml

package info (click to toggle)
python-cartopy 0.25.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,360 kB
  • sloc: python: 16,554; makefile: 159; javascript: 66
file content (43 lines) | stat: -rw-r--r-- 1,451 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
ci:
  autofix_prs: false
  autoupdate_schedule: 'quarterly'
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: "v5.0.0"
    hooks:
        # Prevent giant files from being committed
      - id: check-added-large-files
        # Check whether files parse as valid Python
      - id: check-ast
        # Check for files that contain merge conflict strings
      - id: check-merge-conflict
        # Attempts to load all TOML files to verify syntax
      - id: check-toml
        # Attempts to load all yaml files to verify syntax
      - id: check-yaml
        # Check for debugger imports and py37+ breakpoint() calls in python source
      - id: debug-statements
        # Makes sure files end in a newline and only a newline
      - id: end-of-file-fixer
        # Replaces or checks mixed line ending
      - id: mixed-line-ending
        # Protect specific branches from direct checkins (main)
      - id: no-commit-to-branch
        # Trims trailing whitespace
      - id: trailing-whitespace
  - repo: https://github.com/codespell-project/codespell
    rev: "v2.4.1"
    hooks:
    - id: codespell
      types_or: [python, markdown, rst]
      additional_dependencies: [tomli]
  - repo: https://github.com/aio-libs/sort-all
    rev: "v1.3.0"
    hooks:
      - id: sort-all
        types: [file, python]
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: 'v0.12.2'
    hooks:
    - id: ruff
      args: [--fix]