-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pre-commit * Ignore "recuse" * Pre-commit
- Loading branch information
1 parent
b634b5d
commit 50c441d
Showing
7 changed files
with
88 additions
and
23 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
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,65 @@ | ||
# disable autofixing PRs, commenting "pre-commit.ci autofix" on a pull request triggers a autofix | ||
ci: | ||
autofix_prs: false | ||
# ignore meeting notes since they are synced as is from HackMD | ||
exclude: | | ||
(?x)^( | ||
meetings/archive | ||
)/ | ||
repos: | ||
# generic verification and formatting | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
# standard end of line/end of file cleanup | ||
- id: mixed-line-ending | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
# ensure syntaxes are valid | ||
- id: check-toml | ||
- id: check-yaml | ||
# catch git merge/rebase problems | ||
- id: check-merge-conflict | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.5.5 | ||
hooks: | ||
# lint & attempt to correct failures (e.g. pyupgrade) | ||
- id: ruff | ||
args: [--fix] | ||
# compatible replacement for black | ||
- id: ruff-format | ||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.14.0 | ||
hooks: | ||
- id: pretty-format-toml | ||
args: [--autofix, --trailing-commas] | ||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.2.3 | ||
hooks: | ||
- id: yamlfmt | ||
# ruamel.yaml doesn't line wrap correctly (?) so set width to 1M to avoid issues | ||
args: [--mapping=2, --offset=2, --sequence=4, --width=1000000, --implicit_start] | ||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.29.1 | ||
hooks: | ||
# verify github syntaxes | ||
- id: check-github-workflows | ||
- repo: https://github.com/codespell-project/codespell | ||
# see pyproject.toml | ||
rev: v2.3.0 | ||
hooks: | ||
- id: codespell | ||
args: [--write-changes] | ||
- repo: meta | ||
# see https://pre-commit.com/#meta-hooks | ||
hooks: | ||
- id: check-hooks-apply | ||
- id: check-useless-excludes | ||
- repo: local | ||
hooks: | ||
- id: git-diff | ||
name: git diff | ||
entry: git diff --exit-code | ||
language: system | ||
pass_filenames: false | ||
always_run: true |
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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[dependencies] | ||
python = ">=3.12.4,<3.13" | ||
|
||
[project] | ||
name = "governance" | ||
version = "0.1.0" | ||
description = "Add a short description here" | ||
authors = ["Wolf Vollprecht <[email protected]>"] | ||
channels = ["conda-forge"] | ||
description = "Add a short description here" | ||
name = "governance" | ||
platforms = ["osx-arm64"] | ||
version = "0.1.0" | ||
|
||
[tasks] | ||
vote_markdown = "python to_vote.py" | ||
|
||
[dependencies] | ||
python = ">=3.12.4,<3.13" |
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