mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
- Add a few more hooks. These are all very fast, and I've found them useful in other projects:
- Autofixes:
- `trailing-whitespace`: fixes trailing whitespace
- `requirements-txt-fixer`: alphabetises items in `requirements.txt` files
- `end-of-file-fixer`: makes sure every file ends with a single newline character
- `mixed-line-ending`: Makes sure Windows users don't accidentally introduce CRLF line endings into a file that uses LF line endings
- None-autofixes:
- `check-yaml`: loads YAML files to validate syntax
- `check-toml`: loads TOML files to validate syntax
- `check-merge-conflict`: detects merge-conflict strings in files and blocks them from accidentally being committed
- `check-case-conflict`: checks for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT; blocks them from being committed.
- Change the bot schedule to quarterly, to reduce noisy PRs
- Change the `black` language target-version to Python 3.10, synching the setting here with the changes that were made to our `pyproject.toml` file in #7538
21 lines
934 B
Plaintext
21 lines
934 B
Plaintext
aiohttp==3.8.3
|
|
black==22.12.0 # must match .pre-commit-config.yaml
|
|
flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml
|
|
flake8-bugbear==23.1.14; python_version >= "3.8" # must match .pre-commit-config.yaml
|
|
flake8-noqa==1.3.0; python_version >= "3.8" # must match .pre-commit-config.yaml
|
|
flake8-pyi==23.1.0; python_version >= "3.8" # must match .pre-commit-config.yaml
|
|
isort==5.11.4 # must match .pre-commit-config.yaml
|
|
mypy==0.991
|
|
packaging==23.0
|
|
pathspec>=0.10.3
|
|
pre-commit-hooks==4.4.0 # must match .pre-commit-config.yaml
|
|
pycln==2.1.3 # must match .pre-commit-config.yaml
|
|
pytype==2023.1.17; platform_system != "Windows" and python_version < "3.11"
|
|
pyyaml==6.0
|
|
termcolor>=2
|
|
tomli==2.0.1
|
|
tomlkit==0.11.6
|
|
types-pyyaml
|
|
types-setuptools
|
|
typing-extensions
|