
While this development environment / requirements situation is a mess, let's at least make it consistent. We're effectively supporting two modes of development in this project, 1) tox based dev commands (e.g. `tox -e fuzz`) that are dead simple to use, and 2) manual dev commands (e.g. `pytest -n auto`) that give more control and are usually faster. Right now the Pipfile.lock based development environment is incomplete missing the test requirements specified in ./test_requirements.txt. This is annoying since manual test commands (e.g. `pytest -k fmtonoff`) fail. Let's fix this by making Pipfile.lock basically a "everything you need" requirements file (fuzzing not included since running it locally is not something common). Oh and let's bump some documentation deps (and bring some requirements across .pre-commit-config.yaml, Pipfile, and docs/requirement.txt in alignment again). Don't worry, I tested these changes so they should be fine (hopefully!).
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
# Note: don't use this config for your own repositories. Instead, see
|
|
# "Version control integration" in docs/integrations/source_version_control.md
|
|
exclude: ^(src/blib2to3/|profiling/|tests/data/)
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: black
|
|
name: black
|
|
language: system
|
|
entry: black
|
|
minimum_pre_commit_version: 2.9.2
|
|
require_serial: true
|
|
types_or: [python, pyi]
|
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
rev: 3.9.2
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies: [flake8-bugbear]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v0.910
|
|
hooks:
|
|
- id: mypy
|
|
exclude: ^docs/conf.py
|
|
additional_dependencies:
|
|
- types-dataclasses >= 0.1.3
|
|
- tomli >= 0.2.6, < 2.0.0
|
|
- types-typed-ast >= 1.4.1
|
|
- click >= 8.0.0
|
|
- platformdirs >= 2.1.0
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v2.3.2
|
|
hooks:
|
|
- id: prettier
|
|
exclude: ^Pipfile\.lock
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
hooks:
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|