Skip to content

Commit

Permalink
Fixed #207 -- Add lint check on pre-commit for front end
Browse files Browse the repository at this point in the history
  • Loading branch information
29deepanshutyagi committed Dec 9, 2024
1 parent 66d3efc commit 186427c
Showing 1 changed file with 39 additions and 37 deletions.
76 changes: 39 additions & 37 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
exclude: ^docs/

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: end-of-file-fixer
exclude: ^(frontend/|.*\.js$)
- id: requirements-txt-fixer
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
hooks:
- id: ruff
args: [
--fix,
--select=I, # only run imports sorting
--exit-non-zero-on-fix,
]
- id: ruff
args: [
--fix,
--exit-non-zero-on-fix,
]
- id: ruff-format
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
exclude: |
(?x)^(
package.lock.json|
.*\.js
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: end-of-file-fixer
exclude: ^(frontend/|.*\.js$)
- id: requirements-txt-fixer
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
hooks:
- id: ruff
args: [
--fix,
--select=I, # only run imports sorting
--exit-non-zero-on-fix,
]
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
exclude: |
(?x)^(
package.lock.json|
.*\.js
)$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2 # Use the version you need
hooks:
- id: prettier
additional_dependencies: [[email protected]]

0 comments on commit 186427c

Please sign in to comment.