Skip to content

Commit 73ff5f9

Browse files
author
Tatu Aalto
authored
Merge pull request #41 from tatu-aalto/run_black
Run Black as part CI
2 parents 1f4f91b + 23d2a7f commit 73ff5f9

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
run: pip install -e .[dev]
3535
- name: Run mypy
3636
run: mypy . --ignore-missing-imports
37+
- name: Run Black
38+
run: black --check --diff --config pyproject.toml tests flaky_tests_detection
3739
- name: Run tests
3840
run: pytest --cov=.
3941

flaky_tests_detection/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.3"
1+
__version__ = "1.0.3"

flaky_tests_detection/check_flakes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import numpy as np
1010
import matplotlib.pyplot as plt
1111
import seaborn as sns
12-
import sys
1312

1413
EWM_ALPHA = 0.1
1514
EWM_ADJUST = False

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool.black]
2+
line-length = 120
3+
target-version = ['py36']

0 commit comments

Comments
 (0)