36 lines
881 B
YAML
36 lines
881 B
YAML
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
|
|
# SPDX-FileCopyrightText: 2020-2024 Jeff Epler
|
|
#
|
|
# SPDX-License-Identifier: Unlicense
|
|
|
|
default_language_version:
|
|
python: python3
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
exclude: src/wwvb/iersdata.json
|
|
- id: trailing-whitespace
|
|
exclude: test/wwvbgen_testcases
|
|
- repo: https://github.com/fsfe/reuse-tool
|
|
rev: v5.0.2
|
|
hooks:
|
|
- id: reuse
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: v0.12.10
|
|
hooks:
|
|
# Run the linter.
|
|
- id: ruff
|
|
args: [ --fix ]
|
|
# Run the formatter.
|
|
- id: ruff-format
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.20.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [ --py39-plus ]
|
|
exclude: src/uwwvb.py # CircuitPython prevaling standard!
|