forked from vericast/conda-mirror
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from conda-incubator/pre-commit-hooks
Add pre-commit hooks
- Loading branch information
Showing
20 changed files
with
262 additions
and
187 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,21 @@ | ||
name: Lint | ||
|
||
on: push | ||
|
||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
|
||
jobs: | ||
pre-commit-checks: | ||
name: "Linux - pre-commit hooks" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v3 | ||
- name: Install Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Run pre-commit checks | ||
uses: pre-commit/[email protected] |
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,33 @@ | ||
repos: | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black-conda | ||
args: | ||
- --safe | ||
- --target-version=py38 | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8-conda | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort-conda | ||
additional_dependencies: [-c, conda-forge, toml=0.10.2] | ||
#- repo: https://github.com/Quantco/pre-commit-mirrors-mypy | ||
# rev: "0.991" | ||
# hooks: | ||
# - id: mypy-conda | ||
# additional_dependencies: [-c, conda-forge, types-setuptools] | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-pyupgrade | ||
rev: 3.3.1 | ||
hooks: | ||
- id: pyupgrade-conda | ||
args: | ||
- --py38 | ||
- repo: https://github.com/Quantco/pre-commit-mirrors-prettier | ||
rev: 2.7.1 | ||
hooks: | ||
- id: prettier-conda | ||
files: "\\.md$" |
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,19 +1,19 @@ | ||
All of the people who have made at least one contribution to conda-mirror. | ||
Authors are sorted by number of commits. | ||
|
||
* Eric Dill | ||
* Magnus Holm | ||
* Ilan Schnell | ||
* Peter Parente | ||
* Anthony Scopatz | ||
* John Kirkham | ||
* Michael Peters | ||
* magnuhho | ||
* Uwe L. Korn | ||
* Diogo Pereira | ||
* Jens Nie | ||
* Willi Rath | ||
* David Kent | ||
* Johannes Haberl | ||
* Marius van Niekerk | ||
* Bruno Oliveira | ||
- Eric Dill | ||
- Magnus Holm | ||
- Ilan Schnell | ||
- Peter Parente | ||
- Anthony Scopatz | ||
- John Kirkham | ||
- Michael Peters | ||
- magnuhho | ||
- Uwe L. Korn | ||
- Diogo Pereira | ||
- Jens Nie | ||
- Willi Rath | ||
- David Kent | ||
- Johannes Haberl | ||
- Marius van Niekerk | ||
- Bruno Oliveira |
Oops, something went wrong.