Skip to content

Commit

Permalink
use pre-commit instead of gh workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky committed Feb 23, 2024
1 parent 356775a commit 55c0dab
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/lint-n-static-analysis.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ci:
skip: [pyright]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-toml
- id: mixed-line-ending
- id: trailing-whitespace
files: context_chat_backend/|main\.py
- id: end-of-file-fixer
exclude: persistent_storage

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: ruff

- repo: local
hooks:
- id: pyright
name: pyright
entry: pyright
language: system
types: [python]
pass_filenames: false

0 comments on commit 55c0dab

Please sign in to comment.