Skip to content

Rename pylint.yml to linting.yml #1

Rename pylint.yml to linting.yml

Rename pylint.yml to linting.yml #1

Workflow file for this run

name: Code-Analysis
on: [push]
jobs:
pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
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 $(find . -name "requirement*" -type f -printf ' -r %p')
pip install pylint
- name: Analysing the code with pylint
run: |
pylint -d C0301,R0913,W1202 $(git ls-files '*.py') --ignored-modules "rdkit"
mypy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
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 $(find . -name "requirement*" -type f -printf ' -r %p')
pip install mypy
mypy --install-types --non-interactive .
- name: Analysing the code with mypy
run: |
mypy --ignore-missing-imports --disallow-any-generics --disallow-untyped-defs --no-implicit-optional --disallow-incomplete-defs .