mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-06 02:15:22 -05:00
* add basic pre-commit file * add flake8 * add isort * add pep585-upgrade (typing upgrades) * use namespace for import * add mypy * update ci for backend * flake8 scope * fix version format * update makefile * disable strict option (temporary) * fix mypy issues * upgrade type hints (pre-commit) * add vscode typing check * add types to dev deps * remote container draft * update setup script * update compose version * run setup on create * dev containers update * remove unused pages * update setup tips * expose ports * Update pre-commit to include flask8-print (#1053) * Add in flake8-print to pre-commit * pin version of flake8-print * formatting * update getting strated docs * add mypy to pre-commit * purge .mypy_cache on clean * drop mypy Co-authored-by: zackbcom <zackbcom@users.noreply.github.com>
31 lines
799 B
YAML
31 lines
799 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.3.0
|
|
hooks:
|
|
- id: check-yaml
|
|
exclude: "mkdocs.yml"
|
|
- id: check-json
|
|
exclude: "devcontainer.json"
|
|
- id: check-toml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/sondrelg/pep585-upgrade
|
|
rev: "v1.0.1" # Use the sha / tag you want to point at
|
|
hooks:
|
|
- id: upgrade-type-hints
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
- repo: https://github.com/psf/black
|
|
rev: 21.12b0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: "4.0.1"
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies:
|
|
- "flake8-print==4.0.0"
|