Skip to content

Commit

Permalink
Adds basic pre-commit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
schuylermartin45 committed Jan 4, 2024
1 parent b3cc474 commit 64274dc
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Apply to all files without commiting:
# pre-commit run --all-files
# Update this file:
# pre-commit autoupdate
# This prevents `pre-commit` from using a newer version of Python, which may cause `pylint` to emit extra errors.
default_language_version:
python: python3.11
exclude: |
(?x)^(
tests/test_aux_files/.*|
docs/.*|
setup.py|
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
exclude_types: ["json"]
- id: check-ast
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
- id: check-github-actions
- id: check-github-workflows
- id: check-renovate
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: [--write]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# anaconda-feedstock-gha
GitHub Actions that run across the feedstock repositories found in AnacondaRecipes


A `pre-commit` file is provided to perform checks against the workflow configuration files.
As of writing, we do not provide a `Makefile` or `environment.yaml` to setup a `conda environment` and `pre-commit`.

0 comments on commit 64274dc

Please sign in to comment.