forked from UXARRAY/uxarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (25 loc) · 924 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (25 loc) · 924 Bytes
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
ci:
autofix_prs: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks # Some common pre-commit hooks
rev: v6.0.0
hooks:
- id: check-yaml # Checks the syntax of .yaml files.
args: [--allow-multiple-documents]
- id: end-of-file-fixer # Makes sure files end with a newline.
- id: trailing-whitespace # Checks for any tabs or spaces after the last non-whitespace character on the line.
- id: check-docstring-first # Checks that code comes after the docstrings.
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.13.2
hooks:
- id: ruff
name: lint with ruff
types_or: [ python, pyi, jupyter ]
- id: ruff
name: sort imports with ruff
args: [ --select, I, --fix ]
- id: ruff-format
name: format with ruff
types_or: [ python, pyi, jupyter ]