Skip to content

Commit

Permalink
Add pre-commit to build #49 (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Czech <eric@related.vc>
  • Loading branch information
eric-czech and rs-gh-sa committed Sep 14, 2020
1 parent b3e9628 commit e454e85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,11 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run pre-commit
uses: pre-commit/action@v2.0.0
- name: Test with pytest
run: |
py.test tests -v --cov=rechunker --cov-config .coveragerc --cov-report term-missing
coverage xml
- name: Codecov
uses: codecov/codecov-action@v1

lint:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black
- name: Lint with flake8
run: |
flake8
- name: Check formatting
run: |
black --check . -v
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ repos:
rev: 19.10b0
hooks:
- id: black
language_version: python3.7
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
language_version: python3.7
language_version: python3

0 comments on commit e454e85

Please sign in to comment.