Skip to content

Commit

Permalink
Run black in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
m-lundberg committed Oct 2, 2022
1 parent 505a18f commit cb6911b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 mypy pytest
python -m pip install flake8 mypy pytest black colorama
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests with pytest
Expand All @@ -42,3 +42,7 @@ jobs:
- name: Run mypy
run: |
python -m mypy --strict simple_pid
- name: Run black
run: |
python -m black -l 100 -S --check --diff --color --exclude "docs/" .
1 change: 1 addition & 0 deletions tests/test_pid.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def time_function():
nonlocal i
i += 1
return i

pid.time_fn = time_function

for j in range(1, 5):
Expand Down

0 comments on commit cb6911b

Please sign in to comment.