Skip to content

Updated to use Rust backend #617

Updated to use Rust backend

Updated to use Rust backend #617

Workflow file for this run

# 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/