Skip to content

Commit

Permalink
try removing pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrysteve committed Mar 14, 2023
1 parent 91e241a commit c6d2558
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 21 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ jobs:
python -m pip install --upgrade pip
pip install -U tox tox-gh-actions coveralls
pip install -r requirements-tox.txt -r requirements-test.txt
- name: Run pre-commit
run: |
pre-commit run --all-files --show-diff-on-failure
- name: Run tox
run: |
tox -e py
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on:
push:
paths:
- '*.py'

jobs:
mypy:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.11.2
architecture: x64
- name: Checkout
uses: actions/checkout@v1
- name: Install mypy
run: pip install mypy
- name: Run mypy
uses: sasanquaneuf/mypy-github-action@releases/v1
with:
checkName: 'mypy' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 0 additions & 11 deletions .pre-commit-config.yaml

This file was deleted.

8 changes: 1 addition & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
[tox]
envlist=lint,py{37,38,39,310,311,py3}
envlist=py{37,38,39,310,311,py3}

[testenv]
deps=-r requirements-test.txt
whitelist_externals=make
commands=make test_coverage


[testenv:lint]
deps = pre-commit~=1.17
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure

0 comments on commit c6d2558

Please sign in to comment.