Skip to content

Commit

Permalink
Consolidate
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankpatibandla committed Feb 21, 2024
1 parent e54887f commit 3cb2f74
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 68 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/formatter.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/lint-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Formatter

on:
pull_request:
push:

env:
SKIP: pylint,isort,black

jobs:
Formatter:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- uses: isort/[email protected]
with:
configuration: "--settings-file=.isort.cfg"
requirements-files: "requirements.txt"
- uses: psf/black@stable
with:
options: "--line-length=120"
version: "24.2.0"
- uses: stefanzweifel/[email protected]
with:
commit_message: "Format code with isort and black"
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- uses: pre-commit/[email protected]
Pylint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py') --rcfile=$(git ls-files '.pylintrc')
16 changes: 0 additions & 16 deletions .github/workflows/pre-commit.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/pylint.yml

This file was deleted.

0 comments on commit 3cb2f74

Please sign in to comment.