diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..d51d9fa --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -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. diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..c33ab80 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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