Merge pull request #17 from SimeonEhrig/RuleClangCudaMinVersion #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint-code | |
on: [push, pull_request] | |
jobs: | |
formatter: | |
name: runner black code formatter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
src: "./" | |
version: "~= 24.0" | |
mypy-linter: | |
name: run mypy linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
architecture: x64 | |
- name: Install bashi | |
run: | | |
pip install . | |
- name: Install mypy | |
run: | | |
pip install mypy | |
- name: Run mypy on bashi source code | |
run: | | |
mypy bashi | |
- name: Run mypy on example | |
run: | | |
mypy example | |
pylint-linter: | |
name: run pylint linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
architecture: x64 | |
- name: Install bashi | |
run: | | |
pip install . | |
- name: Install pylint | |
run: | | |
pip install pylint | |
- name: Run pylint on bashi source code | |
run: | | |
pylint bashi | |
- name: Run pylint on example | |
run: | | |
pylint example/example.py |