Skip to content

Commit 1536346

Browse files
committed
Adding a workflow for automated linting
1 parent 6872de0 commit 1536346

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Lint
2+
on: [push]
3+
jobs:
4+
lint:
5+
name: Lint
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout repository
9+
uses: actions/checkout@v6
10+
- name: Install Pylint
11+
run: sudo apt-get install --yes pylint
12+
- name: Analyse code
13+
run: |
14+
find . -not -path "*/[._]*" -type f -name "*.py" | xargs \
15+
pylint --errors-only --ignored-modules=pygame

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![](https://github.com/feberts/python-game-server/actions/workflows/lint.yml/badge.svg)](https://github.com/feberts/python-game-server/actions/workflows/lint.yml)
12
![](https://img.shields.io/badge/OS-Linux_%7C_Win_%7C_Mac-30C452?labelColor=373F46)
23
![](https://img.shields.io/badge/Python-blue?logo=python&logoColor=FFCF3E)
34
![](https://img.shields.io/badge/License-GPLv3-blue?labelColor=373F46)

0 commit comments

Comments
 (0)