Skip to content

Commit

Permalink
Merge pull request #663 from hydrosquall/cameron.yick/run-black-forma…
Browse files Browse the repository at this point in the history
…tting

chore(build): apply black formatting + CI step to main codebase
  • Loading branch information
hydrosquall committed Aug 15, 2021
2 parents fe0e199 + f153a9c commit bf9641d
Show file tree
Hide file tree
Showing 9 changed files with 333 additions and 270 deletions.
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
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,15 @@ clean-test: ## remove test and coverage artifacts
lint: ## check style with flake8
flake8 tiingo tests

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


test-all: ## run tests on every Python version with tox
tox
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ pytest==6.2.4
pytest-runner==5.3.1
vcrpy==2.1.1
twine==3.4.2
black==21.7b0
2 changes: 1 addition & 1 deletion tiingo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from tiingo.wsclient import TiingoWebsocketClient

__author__ = """Cameron Yick"""
__email__ = 'cameron.yick@enigma.com'
__email__ = "cameron.yick@enigma.com"
2 changes: 1 addition & 1 deletion tiingo/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '0.14.0'
__version__ = "0.14.0"
Loading

0 comments on commit bf9641d

Please sign in to comment.