Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Nov 20, 2023
1 parent fd04908 commit 2a1493e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---

name: Lint

on:
push:
branches: [latest]
pull_request:
branches: [latest]

jobs:
build:
strategy:
matrix:
python-version: [3.10]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
pip install -r requirements_lint.txt
shell: bash

- name: Running PyLint
run: pylint --recursive=y .
shell: bash
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ disable=E0611, E0401, # ansible modules will not be found
W0511, # todo comments
R0205, # filter-modules
R1735, # dict-call for config
R0801, # duplicate code-fragments

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
1 change: 1 addition & 0 deletions requirements_lint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pylint

0 comments on commit 2a1493e

Please sign in to comment.