Skip to content

[Minor] Reduce DataFrame copies (#1648) #2646

[Minor] Reduce DataFrame copies (#1648)

[Minor] Reduce DataFrame copies (#1648) #2646

Workflow file for this run

name: Linters
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
flake8:
name: flake8
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install flake8
- name: flake8
uses: liskin/gh-problem-matcher-wrap@v2
with:
linters: flake8
run: flake8 neuralprophet scripts
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: ruff
uses: chartboost/ruff-action@v1
isort:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install isort
- name: isort
uses: liskin/gh-problem-matcher-wrap@v2
with:
linters: isort
run: isort --check --diff neuralprophet tests scripts
black:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: black
uses: psf/black@stable
with:
jupyter: true
pyright:
runs-on: ubuntu-latest
env:
POETRY_VIRTUALENVS_CREATE: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Cache poetry
id: poetry-cache
uses: actions/cache@v3
with:
path: ~/.local
key: poetry
- name: Setup poetry
if: steps.poetry-cache.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install --no-interaction --with=linters --without=dev,docs,pytest,metrics
- name: pyright
uses: jakebailey/pyright-action@v1