github ci: linting

This commit is contained in:
Chris Hager 2021-07-02 20:43:14 +02:00
parent 98cb1ffcae
commit 8bfe48711a
No known key found for this signature in database
GPG Key ID: FC6D2CD59DEB357F
2 changed files with 50 additions and 0 deletions

24
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Lint the code
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install pylint
run: pip install pylint
- name: Lint
run: pylint $(git ls-files '*.py')

26
.gitignore vendored Normal file
View File

@ -0,0 +1,26 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
.*_cache
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
venv/