forked from openPMD/openPMD-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basis for automated pre-commit checks. Install locally via: ```bash python3 -m pip install -U pre-commit pre-commit install ``` See: https://pre-commit.com
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: requirements-txt-fixer | ||
# - id: fix-encoding-pragma | ||
# exclude: ^noxfile.py$ | ||
|
||
#- repo: https://github.com/asottile/pyupgrade | ||
# rev: v2.29.0 | ||
# hooks: | ||
# - id: pyupgrade | ||
|
||
# Changes tabs to spaces | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
rev: v1.1.10 | ||
hooks: | ||
- id: remove-tabs | ||
|
||
# CMake formatting | ||
#- repo: https://github.com/cheshirekow/cmake-format-precommit | ||
# rev: v0.6.13 | ||
# hooks: | ||
# - id: cmake-format | ||
# additional_dependencies: [pyyaml] | ||
# types: [file] | ||
# files: (\.cmake|CMakeLists.txt)(.in)?$ | ||
|
||
# C++ formatting | ||
# clang-format | ||
|
||
# Python Formatting | ||
#- repo: https://github.com/psf/black | ||
# rev: 21.10b0 # Keep in sync with blacken-docs | ||
# hooks: | ||
# - id: black | ||
#- repo: https://github.com/asottile/blacken-docs | ||
# rev: v1.11.0 | ||
# hooks: | ||
# - id: blacken-docs | ||
# additional_dependencies: | ||
# - black==21.10b0 # keep in sync with black hook | ||
|
||
# Checks the manifest for missing files (native support) | ||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.47" | ||
hooks: | ||
- id: check-manifest | ||
# This is a slow hook, so only run this if --hook-stage manual is passed | ||
stages: [manual] | ||
additional_dependencies: [cmake, ninja] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ spack: | |
- py-numpy | ||
- py-pandas | ||
- py-dask | ||
- py-pre-commit |