Skip to content

add generate_second_order_model method with unit test #517

add generate_second_order_model method with unit test

add generate_second_order_model method with unit test #517

Workflow file for this run

# Inspired by https://github.com/pyg-team/pytorch_geometric/blob/ee30973ed0957a7f29f345d4eeaf9cfd70805109/.github/workflows/linting.yml
name: Linting
on:
push:
branches:
- main
pull_request:
jobs:
pylint: # linter: tool that checks for errors in Python code, tries to enforce a coding standard and looks for bad code smells
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup packages
uses: ./.github/actions/setup
with:
full_install: false
- name: Install dependencies
run: pip install pylint
- name: Run linting
continue-on-error: true
run: pylint $(git ls-files '*.py')
flake8: # Another linter: Mostly checks if code is PEP8 conform but has some additional plugins.
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10.13" # As in docker image (pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime) used as dev container
- name: Install dependencies
run: pip install flake8 flake8-pyproject flake8-bugbear
- name: Run linting
continue-on-error: true
run: flake8 $(git ls-files '*.py')
mypy: # stricter static type checker
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup packages
uses: ./.github/actions/setup
with:
full_install: false
- name: Install dependencies
run: pip install mypy
- name: Check type hints
continue-on-error: true
run: |
mypy src/pathpyG