Skip to content

Commit

Permalink
Merge pull request #105 from bluesky/100-code-style
Browse files Browse the repository at this point in the history
apply black -l 75 to all code
  • Loading branch information
prjemian authored Jan 21, 2021
2 parents 9c36128 + a9a3877 commit 1ce145a
Show file tree
Hide file tree
Showing 25 changed files with 688 additions and 647 deletions.
5 changes: 3 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exclude =
build,
dist,
versioneer.py,
docs/source
docs/source,
hkl/_version.py
max-line-length = 115
ignore: W504,W503,E741,E402,E226
ignore: E226,E402,E741,W503,W504
11 changes: 11 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: psf/black@stable
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Makefile

# Simplify the pre-commit checks for the code developer.

all :: black flake8 pytest examples clean_docs html

black ::
black .

clean_docs ::
make -C docs clean

examples ::
make -C examples

flake8 ::
flake8

html ::
make -C docs html

pytest ::
pytest
Loading

0 comments on commit 1ce145a

Please sign in to comment.