Skip to content

Commit

Permalink
add some actionable opinions about linting (#668)
Browse files Browse the repository at this point in the history
* add some actionable opinions about linting

* don't lint .git dir

* linting action

* add reqd platform value

* invoke lint directly

* add job

* re-add matrix

* matrix takes a list

* include deps in linting; rm auto triggers for lint (for now)

* enable manual trigger

* rename final stage

* move pylint to own project reqs section, streamline workflow
  • Loading branch information
leondz authored May 11, 2024
1 parent 8cecf8d commit ef82e9f
Show file tree
Hide file tree
Showing 4 changed files with 1,006 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Garak linting

on: [workflow_dispatch]

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Pylint
run: |
pylint -v garak
Loading

0 comments on commit ef82e9f

Please sign in to comment.