mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-18 20:24:19 +01:00
build: add black formatting to CI
This commit is contained in:
5
.github/workflows/python-package.yml
vendored
5
.github/workflows/python-package.yml
vendored
@@ -30,8 +30,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python setup.py develop
|
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
|
tools/install_pandas.sh
|
||||||
|
- name: black
|
||||||
|
run: |
|
||||||
|
black --check tiingo
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
# stop the build if there are Python syntax errors or undefined names
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -53,6 +53,8 @@ lint: ## check style with flake8
|
|||||||
format: ## apply opinionated formatting
|
format: ## apply opinionated formatting
|
||||||
black tiingo/
|
black tiingo/
|
||||||
|
|
||||||
|
format-check: ## check formatting for CI
|
||||||
|
black --check tiingo/
|
||||||
|
|
||||||
test: ## run tests quickly with the default Python
|
test: ## run tests quickly with the default Python
|
||||||
py.test
|
py.test
|
||||||
|
|||||||
Reference in New Issue
Block a user