Skip to content

Commit

Permalink
Make CI linting identical to pre-commit hooks linting
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 committed Feb 9, 2021
1 parent fb40645 commit 20836be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/main.yaml
Expand Up @@ -71,12 +71,5 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: pip-install
shell: bash -l {0}
run: |
pip install flake8 black
- name: Lint
shell: bash -l {0}
run: |
flake8 fsspec
black fsspec --check
- uses: pre-commit/action@v2.0.0

17 changes: 6 additions & 11 deletions .pre-commit-config.yaml
Expand Up @@ -2,18 +2,13 @@ exclude: >
(?x)^(
\.tox/.*
)$
default_language_version:
python: python3.7
repos:
- repo: local
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
name: black
entry: black
language: python
require_serial: true
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
- id: flake8

2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -2,4 +2,4 @@
# Revert to py34 target syntax to accomodate
# errors in trailing commas.
# https://github.com/psf/black/pull/763
target_version = ['py34']
target_version = ['py36', 'py37', 'py38']

0 comments on commit 20836be

Please sign in to comment.