Skip to content

Commit

Permalink
ci: Add linter
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolai Buchwitz <[email protected]>
  • Loading branch information
nbuchwitz committed Jun 30, 2024
1 parent 3d1398c commit 8502b23
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS: [e.g. Debian Bullseye, CentOS 7, ...]
- Python Version [e.g. 3.6, 3.9, ...]
- PVE Version [e.g. 6.5, 7.1-8, ...]
- Monitoring Tool [e.g. Icinga2, Nagios, ...]

**Additional context**
Add any other context about the problem here.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on: [push, pull_request]
name: Linter

jobs:
build:
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "*"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install black ruff
- name: Check styling with black
run: |
black --check *.py
- name: Run ruff linter
run: |
ruff check *.py

0 comments on commit 8502b23

Please sign in to comment.