Updated to use Rust backend #617
Workflow file for this run
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
# linting with pylint and mypy | |
# Locally run `pre-commit install` then commit | |
name: linting | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request.draft }} | |
strategy: | |
matrix: | |
python-version: ["3.x"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint mypy | |
pip install -r tests/requirements.txt | |
- name: Pylint | |
run: | | |
# pylint $(git ls-files '*.py') # ignore test files for now | |
# Ignoring: fixme, too-few-public-methods, duplicate-code, unreachable | |
pylint python2verilog/ --rcfile=.pylintrc | |
- name: Mypy | |
run: | | |
python3 -m mypy python2verilog/ |