fix: pre-commit
This commit is contained in:
parent
b30c036478
commit
c9ebdcdda5
1 changed files with 12 additions and 6 deletions
|
|
@ -1,21 +1,25 @@
|
||||||
minimum_pre_commit_version: "3.5.0"
|
minimum_pre_commit_version: "3.5.0"
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/JohnnyMorganz/StyLua
|
- repo: https://github.com/JohnnyMorganz/StyLua
|
||||||
rev: v2.1.0
|
rev: v2.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: stylua-github
|
- id: stylua-github
|
||||||
name: stylua (Lua formatter)
|
name: stylua (Lua formatter)
|
||||||
args: ["."]
|
files: \.lua$
|
||||||
additional_dependencies: []
|
pass_filenames: true
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.6.9
|
rev: v0.6.9
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
name: ruff (format)
|
name: ruff (format)
|
||||||
files: ^(scrapers/|tests/scrapers/|.*\.py$)
|
files: \.py$
|
||||||
- id: ruff
|
- id: ruff
|
||||||
name: ruff (lint)
|
name: ruff (lint imports)
|
||||||
args: ["--fix", "--select=I", "."]
|
args: ["--fix", "--select=I"]
|
||||||
|
files: \.py$
|
||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
|
|
@ -24,9 +28,11 @@ repos:
|
||||||
language: system
|
language: system
|
||||||
args: ["."]
|
args: ["."]
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
rev: v3.1.0
|
rev: v3.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
name: prettier (format markdown)
|
name: prettier (format markdown)
|
||||||
files: \.(md)$
|
files: \.md$
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue