diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3e1334f..e19bba2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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 diff --git a/Makefile b/Makefile index 1d92b37..12a882f 100644 --- a/Makefile +++ b/Makefile @@ -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