Skip to content

Commit

Permalink
Merge pull request #12 from siemens/chor/lint/add-pylint-to-ci
Browse files Browse the repository at this point in the history
chore(lint): Add PyLint to CI
  • Loading branch information
GMishx authored Jan 27, 2022
2 parents 8ce5f4d + 35597fd commit 39f693b
Show file tree
Hide file tree
Showing 10 changed files with 823 additions and 220 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-License-Identifier: MIT

name: Pylint

on: [push]

jobs:
lint:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint pipenv
- name: Install package
run: |
pipenv install --dev --editable .
- name: Analysing the code with pylint
run: |
pipenv run pylint src/snap_to_bucket
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ tags

# Python
*__pycache__/
build
*.egg-info
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ snap-to-bucket = {path = "."}
[dev-packages]
sphinx = "*"
snap-to-bucket = {editable = true, path = "."}
pylint = "*"
Loading

0 comments on commit 39f693b

Please sign in to comment.