Skip to content

Commit 92ab8ff

Browse files
committed
Automate on CI
1 parent c7b033a commit 92ab8ff

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
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

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

tests/run_tests.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
python -m pip install --upgrade pyright
4-
python -m pip install -r requirements.txt
5-
pyright --pythonversion 3.11 -p pyrighttestconfig.json .
6-
7-
3+
python -m pip install -r requirements.txt -U
84

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

0 commit comments

Comments
 (0)