2022-07-01 21:17:01 +05:30
|
|
|
default_language_version:
|
|
|
|
# force all unspecified python hooks to run python3
|
|
|
|
python: python3.10
|
|
|
|
|
|
|
|
ci:
|
|
|
|
autofix_prs: false
|
|
|
|
|
2019-07-13 14:46:47 -05:00
|
|
|
repos:
|
2022-07-01 21:17:01 +05:30
|
|
|
- repo: https://github.com/psf/black
|
2023-02-06 20:20:51 +00:00
|
|
|
rev: 23.1.0
|
2022-07-01 21:17:01 +05:30
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
entry: black xonsh xontrib tests xompletions
|
|
|
|
pass_filenames: false
|
|
|
|
- repo: https://github.com/pycqa/isort
|
2023-02-06 20:20:51 +00:00
|
|
|
rev: 5.12.0
|
2019-07-13 14:46:47 -05:00
|
|
|
hooks:
|
2022-01-31 20:57:51 +05:30
|
|
|
- id: isort
|
2022-07-01 21:17:01 +05:30
|
|
|
entry: isort xonsh xontrib tests xompletions
|
2021-05-27 01:45:34 +05:30
|
|
|
pass_filenames: false
|
2022-07-01 21:17:01 +05:30
|
|
|
name: isort (python)
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
2022-12-19 19:06:58 +00:00
|
|
|
rev: '6.0.0' # pick a git hash / tag to point to
|
2022-07-01 21:17:01 +05:30
|
|
|
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
|
2023-02-21 12:46:15 +06:00
|
|
|
rev: 'v1.0.1' # Use the sha / tag you want to point at
|
2022-07-01 21:17:01 +05:30
|
|
|
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
|
2021-05-27 01:45:34 +05:30
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-12-19 19:06:58 +00:00
|
|
|
rev: v4.4.0
|
2021-05-27 01:45:34 +05:30
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
2022-07-01 21:17:01 +05:30
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
docs/_static/.+
|
|
|
|
)$
|
2021-05-27 01:45:34 +05:30
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-added-large-files
|
2021-12-07 01:12:26 +05:30
|
|
|
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-12-19 19:06:58 +00:00
|
|
|
rev: v3.3.1
|
2021-12-07 01:12:26 +05:30
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2022-07-01 21:17:01 +05:30
|
|
|
args: [--py38-plus]
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
xonsh/ply/.+|
|
|
|
|
tests/bin/.+
|
|
|
|
)$
|