Skip to content

Commit

Permalink
add pre-commit configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
dakue-soda committed Jan 29, 2025
1 parent edcce27 commit ed53aff
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## See https://pre-commit.com for more information
## See https://pre-commit.com/hooks.html for more hooks

files: ^soda-core/|^soda-postgres/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-json
- id: check-ast
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports"]
# - repo: https://github.com/asottile/pyupgrade
# rev: v3.3.1
# hooks:
# - id: pyupgrade
# exclude: _models?\.py$
# args: [--py38-plus, --keep-runtime-typing]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
additional_dependencies: [toml]
name: Sort imports using isort
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
name: Run black formatter
language_version: python3

0 comments on commit ed53aff

Please sign in to comment.