Skip to content

Commit 5ef4cf7

Browse files
committed
Automate on CI
1 parent c7b033a commit 5ef4cf7

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

.github/workflows/test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ jobs:
3333
with:
3434
project: tests/pyrighttestconfig.json
3535
warn-partial: true
36+
37+
- name: Run isort
38+
uses: isort/isort-action@v1
39+
40+
- name: Run Black
41+
uses: psf/black@stable
42+
with:
43+
options: "--check --verbose"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ strict_equality = true
8585
# Configuring error messages
8686
show_error_context = false
8787
show_column_numbers = false
88-
show_error_codes = true
88+
show_error_codes = true

tests/requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
black
2+
isort
13
pyright
24
matplotlib
35
pytest

tests/run_tests.cmd

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
pip install --upgrade pyright
22
pip install -r requirements.txt
3+
4+
cd ../
5+
isort .
6+
black .
37
pyright --pythonversion 3.11 -p pyrighttestconfig.json .

tests/run_tests.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
python -m pip install --upgrade pyright
44
python -m pip install -r requirements.txt
5-
pyright --pythonversion 3.11 -p pyrighttestconfig.json .
6-
7-
85

6+
cd ../
7+
python -m isort .
8+
python -m black .
9+
pyright --pythonversion 3.11 -p pyrighttestconfig.json .

0 commit comments

Comments
 (0)