Skip to content

Commit

Permalink
build: add black formatting to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrosquall committed Aug 15, 2021
1 parent f4a9a04 commit f153a9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ jobs:
run: |
python -m pip install --upgrade pip
python setup.py develop
python -m pip install flake8 pytest-cov codecov vcrpy
python -m pip install flake8 pytest-cov codecov vcrpy black
tools/install_pandas.sh
- name: black
run: |
black --check tiingo
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ lint: ## check style with flake8
format: ## apply opinionated formatting
black tiingo/

format-check: ## check formatting for CI
black --check tiingo/

test: ## run tests quickly with the default Python
py.test
Expand Down

0 comments on commit f153a9c

Please sign in to comment.