xonsh/.pre-commit-config.yaml
pre-commit-ci[bot] c8c1fd1071
[pre-commit.ci] pre-commit autoupdate (#4874)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-11 23:56:34 +05:30

80 lines
2.1 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: 22.6.0
hooks:
- id: black
entry: black xonsh xontrib tests xompletions
pass_filenames: false
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
entry: isort xonsh xontrib tests xompletions
pass_filenames: false
name: isort (python)
- repo: https://github.com/pycqa/flake8
rev: '4.0.1' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies:
- flake8-docstrings
- flake8-bugbear
# Check for debugger imports and py37+ breakpoint() calls in python source.
- flake8-debugger
exclude: |
(?x)^(
xonsh/ply/.+|
docs/.+
)$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.961' # 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.3.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
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.1
hooks:
- id: pyupgrade
args: [--py38-plus]
exclude: |
(?x)^(
xonsh/ply/.+|
tests/bin/.+
)$