Skip to content

Commit

Permalink
Run black as part of the CircleCI process
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Serko committed Nov 12, 2019
1 parent db93444 commit 4e667cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ jobs:
. venv/bin/activate
flake8 spectacles tests
- run:
name: black
command: |
. venv/bin/activate
black --check spectacles tests
- run:
name: pytest
command: |
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
black==19.3b0
click==7.0
requests==2.22.0
requests-mock==1.7.0
Expand Down
3 changes: 2 additions & 1 deletion spectacles/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ def _query(self, mode: str = "batch") -> List[SqlError]:
for dimension in explore.dimensions:
task = loop.create_task(
self._query_dimension(
session, model, explore, dimension)
session, model, explore, dimension
)
)
tasks.append(task)

Expand Down

0 comments on commit 4e667cd

Please sign in to comment.