Files
connexion/.pre-commit-config.yaml
Robbe Sneyders 0857710147 Only instantiate specification once (#1819)
Fixes #1801 

I had to make quite a few additional changes to satisfy mypy.
2023-11-30 23:59:26 +01:00

56 lines
1.4 KiB
YAML

ci:
autoupdate_branch: "main"
autoupdate_schedule: monthly
repos:
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
files: "^connexion/"
additional_dependencies:
- flake8-rst-docstrings==0.2.3
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
files: "^connexion/"
args: ["--project", "connexion", "--check-only", "--diff"]
- id: isort
name: isort examples
files: "^examples/"
args: ["--thirdparty", "connexion", "--check-only", "--diff"]
- id: isort
name: isort tests
files: "^tests/"
args: ["--project", "conftest", "--thirdparty", "connexion", "--check-only", "--diff"]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: black
files: "^connexion/"
args: ["connexion"]
- id: black
name: black examples
files: "^examples/"
args: ["examples"]
- id: black
name: black tests
files: "^tests/"
args: ["tests"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.981
hooks:
- id: mypy
files: "^connexion/"
args: ["--ignore-missing-imports", "connexion"]
additional_dependencies:
- types-jsonschema
- types-PyYAML
- types-requests
pass_filenames: false