| 1 |
# Install pre-commit hooks via |
| 2 |
# pre-commit install |
| 3 |
|
| 4 |
exclude: > |
| 5 |
(?x)^( |
| 6 |
\.vscode/settings\.json| |
| 7 |
tests/.*xml| |
| 8 |
tests/.*txt| |
| 9 |
)$ |
| 10 |
|
| 11 |
repos: |
| 12 |
|
| 13 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 14 |
rev: v6.0.0 |
| 15 |
hooks: |
| 16 |
- id: check-json |
| 17 |
- id: check-yaml |
| 18 |
- id: end-of-file-fixer |
| 19 |
- id: trailing-whitespace |
| 20 |
|
| 21 |
- repo: https://github.com/astral-sh/ruff-pre-commit |
| 22 |
rev: v0.14.11 |
| 23 |
hooks: |
| 24 |
- id: ruff |
| 25 |
args: [--fix] |
| 26 |
- id: ruff-format |
| 27 |
|
| 28 |
- repo: https://github.com/pre-commit/mirrors-mypy |
| 29 |
rev: v1.19.1 |
| 30 |
hooks: |
| 31 |
- id: mypy |
| 32 |
additional_dependencies: [] |
| 33 |
|
| 34 |
- repo: local |
| 35 |
hooks: |
| 36 |
- id: css |
| 37 |
name: css |
| 38 |
description: Compile the SCSS/SASS files to CSS inside the python package |
| 39 |
files: \.(scss|sass)$ |
| 40 |
language: node |
| 41 |
additional_dependencies: ['[email protected]'] |
| 42 |
# entry: sass |
| 43 |
entry: npm run css |
| 44 |
require_serial: true |
| 45 |
pass_filenames: false |
| 46 |
# args: [--style=compressed, --no-source-map, style/index.scss, sphinx_design/compiled/style.min.css] |
| 47 |
|
| 48 |
- id: tsc |
| 49 |
name: tsc (jsdoc) |
| 50 |
entry: tsc |
| 51 |
language: node |
| 52 |
files: \.(js)$ |
| 53 |
types_or: [javascript] |
| 54 |
args: [--allowJs, --noEmit, --strict] |
| 55 |
additional_dependencies: |
| 56 |
- typescript |