Skip to content

Commit

Permalink
Add Python pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
raimannma committed Oct 18, 2024
1 parent 65b79bb commit 2901dd9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,24 @@ repos:
hooks:
- id: sqlfluff-fix
args: ["--dialect", "clickhouse", "-e", "CP03,CP05"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py311-plus]
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black, --filter-files]
- repo: https://github.com/ambv/black
rev: 24.8.0
hooks:
- id: black

# Hooks for validation
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -29,6 +47,8 @@ repos:
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-ast
- id: debug-statements
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.0.3
hooks:
Expand Down
3 changes: 2 additions & 1 deletion spectator/client/gen-compose.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import jinja2
import json
import os

import jinja2
from dotenv import load_dotenv

load_dotenv()
Expand Down

0 comments on commit 2901dd9

Please sign in to comment.