Skip to content

Commit

Permalink
Merge branch 'Serious-senpai:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
khoint5304 authored Nov 28, 2023
2 parents 5fa055f + e46478d commit 0b241f4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
47 changes: 45 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: pip install -r dev-requirements.txt

Expand All @@ -26,12 +31,20 @@ jobs:

mypy:
name: Run mypy
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: pip install -r dev-requirements.txt

Expand All @@ -40,14 +53,44 @@ jobs:

flake8:
name: Run flake8
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: pip install -r dev-requirements.txt

- name: Run flake8
run: flake8 .

pyright:
name: Run pyright
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: pip install -r dev-requirements.txt

- name: Run pyright
run: pyright . --warnings
2 changes: 2 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ matplotlib==3.8.2
mccabe==0.7.0
mypy==1.7.0
mypy-extensions==1.0.0
nodeenv==1.8.0
numpy==1.26.2
packaging==23.2
Pillow==10.1.0
Expand All @@ -28,6 +29,7 @@ pycodestyle==2.11.1
pyflakes==3.1.0
pymoo==0.6.1.1
pyparsing==3.1.1
pyright==1.1.337
pytest==7.4.3
python-dateutil==2.8.2
scipy==1.11.4
Expand Down

0 comments on commit 0b241f4

Please sign in to comment.