mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
![pre-commit-ci[bot]](/assets/img/avatar_default.png)
updates: - [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.281 → v0.0.288](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.281...v0.0.288) - [github.com/pre-commit/mirrors-mypy: v1.4.1 → v1.5.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.4.1...v1.5.1)
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
default_language_version:
|
|
# force all unspecified python hooks to run python3
|
|
python: python3.10
|
|
|
|
ci:
|
|
autofix_prs: false
|
|
|
|
repos:
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.9.1
|
|
hooks:
|
|
- id: black
|
|
entry: black xonsh xontrib tests xompletions
|
|
pass_filenames: false
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: 'v0.0.288'
|
|
hooks:
|
|
- id: ruff
|
|
args: [., --fix, --exit-non-zero-on-fix]
|
|
pass_filenames: false
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: 'v1.5.1' # Use the sha / tag you want to point at
|
|
hooks:
|
|
- id: mypy
|
|
name: mypy xonsh
|
|
pass_filenames: false
|
|
entry: mypy xonsh
|
|
additional_dependencies:
|
|
- types-ujson
|
|
- id: mypy
|
|
name: mypy xontrib
|
|
pass_filenames: false
|
|
entry: mypy xontrib --namespace-packages --explicit-package-bases
|
|
additional_dependencies:
|
|
- types-ujson
|
|
- id: mypy
|
|
name: mypy xompletions
|
|
pass_filenames: false
|
|
entry: mypy xompletions --namespace-packages --explicit-package-bases
|
|
additional_dependencies:
|
|
- types-ujson
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
exclude: |
|
|
(?x)^(
|
|
docs/_static/.+
|
|
)$
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: check-yaml
|
|
- id: check-toml
|
|
- id: check-added-large-files
|