Skip to content

Commit

Permalink
Dpgrev/update precommit config (#331)
Browse files Browse the repository at this point in the history
* update pre-commit-config

* add precommit hook to ci

* Trigger CI

* use official pre-commit action

* add bdist_wheel for pre-commit action

* fix typo

* add pre-commit to conda

* use bash

* remove python version from black

* add black and flake8 back

* format

* fix conda env
  • Loading branch information
DPGrev authored Jan 14, 2021
1 parent d1179cb commit 2f0d9b3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ show_missing = True

[html]
directory = coverage_html_report

6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
shell: bash -l {0}
run: GCSFS_RECORD_MODE=none py.test -vv gcsfs

- name: Lint
- name: Run pre-commit hooks
shell: bash -l {0}
run: |
flake8 gcsfs
black gcsfs --check
pip install pre-commit
pre-commit run --all-file
18 changes: 12 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/ambv/black
rev: cad4138050b86d1c8570b926883e32f7465c2880
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
language_version: python3.7
- 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 CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Dask is a community maintained project. We welcome contributions in the form of bug reports, documentation, code, design proposals, and more.
Dask is a community maintained project. We welcome contributions in the form of bug reports, documentation, code, design proposals, and more.

For general information on how to contribute see https://docs.dask.org/en/latest/develop.html.

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ For documentation, go to readthedocs_.
:alt: Build Status
.. |Doc Status| image:: https://readthedocs.org/projects/gcsfs/badge/?version=latest
:target: https://gcsfs.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
:alt: Documentation Status

0 comments on commit 2f0d9b3

Please sign in to comment.