mirror of
https://github.com/Mesteriis/hassio-addons-avm.git
synced 2026-01-10 15:31:02 +01:00
add fastapi
This commit is contained in:
25
blank-fastapi-vue-hassio/.pre-commit-config.yaml
Normal file
25
blank-fastapi-vue-hassio/.pre-commit-config.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
exclude: '\.js$|\.html|\.css'
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
# Removes spaces at the end of a line.
|
||||
- id: trailing-whitespace
|
||||
# Removes breakpoint, pdb and the like.
|
||||
- id: debug-statements
|
||||
# Fixes a bug with the last line. (If not, or if there is more than one.)
|
||||
- id: end-of-file-fixer
|
||||
|
||||
# Formats the code into a consistent look.
|
||||
- repo: https://github.com/psf/black-pre-commit-mirror
|
||||
rev: 24.4.2
|
||||
hooks:
|
||||
- id: black
|
||||
files: '\.py$'
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.4.9
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: [ --fix, --exit-non-zero-on-fix]
|
||||
Reference in New Issue
Block a user