Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre-commit hooks #66

Merged
merged 5 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/action@v3.0.0
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