Skip to content

Commit

Permalink
add formatting pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosgjs committed Jan 5, 2024
1 parent 50ae50b commit 41f9a64
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
fail_fast: true
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
# - id: check-docstring-first
- id: check-json
- id: check-yaml
- id: pretty-format-json
exclude: \.ipy(n|nb)$
args: ["--autofix", "--indent=2", "--no-sort-keys"]

# Compare the local template version to the latest remote template version
# This hook should always pass. It will print a message if the local version
# This hook should always pass. It will print a message if the local version
# is out of date.
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
rev: v0.1.1
Expand Down Expand Up @@ -82,7 +94,7 @@ repos:


# Run unit tests, verify that they pass. Note that coverage is run against
# the ./src directory here because that is what will be committed. In the
# the ./src directory here because that is what will be committed. In the
# github workflow script, the coverage is run against the installed package
# and uploaded to Codecov by calling pytest like so:
# `python -m pytest --cov=<package_name> --cov-report=xml`
Expand All @@ -95,9 +107,9 @@ repos:
language: system
pass_filenames: false
always_run: true
# Make sure Sphinx can build the documentation while explicitly omitting
# notebooks from the docs, so users don't have to wait through the execution
# of each notebook or each commit. By default, these will be checked in the
# Make sure Sphinx can build the documentation while explicitly omitting
# notebooks from the docs, so users don't have to wait through the execution
# of each notebook or each commit. By default, these will be checked in the
# GitHub workflows.
- repo: local
hooks:
Expand Down

0 comments on commit 41f9a64

Please sign in to comment.