Skip to content

Commit

Permalink
Merge pull request #66 from conda-incubator/pre-commit-hooks
Browse files Browse the repository at this point in the history
Add pre-commit hooks
  • Loading branch information
xhochy committed Feb 27, 2023
2 parents 73cc3cd + db83b28 commit 24b65f4
Show file tree
Hide file tree
Showing 20 changed files with 262 additions and 187 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pre-commit.yaml
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]
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ jobs:
coverage run --concurrency=multiprocessing run_tests.py
coverage combine
coverage report -m
make format-check
make lint
33 changes: 33 additions & 0 deletions .pre-commit-config.yaml
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$"
32 changes: 16 additions & 16 deletions AUTHORS.md
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
Loading

0 comments on commit 24b65f4

Please sign in to comment.