Fix formatting in Python workflow and update .gitignore to include Ansible files
Some checks failed
Ansible Lint Check / check-ansible (push) Successful in 4s
Nix Format Check / check-format (push) Successful in 1m14s
Python Lint Check / check-python (push) Failing after 6s

This commit is contained in:
2025-09-24 18:35:53 +02:00
parent d28c0fce66
commit 78f3133a1d
2 changed files with 11 additions and 9 deletions

View File

@@ -3,24 +3,24 @@ name: Python Lint Check
on: on:
pull_request: pull_request:
push: push:
branches: [ master ] branches: [master]
jobs: jobs:
check-python: check-python:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.10' python-version: '3.10'
- name: Install Python linting tools - name: Install Python linting tools
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install pylint black python -m pip install pylint black
- name: Run pylint - name: Run pylint
run: | run: |
python_files=$(find . -name "*.py" -type f) python_files=$(find . -name "*.py" -type f)
@@ -28,9 +28,9 @@ jobs:
echo "No Python files found to lint" echo "No Python files found to lint"
exit 0 exit 0
fi fi
pylint $python_files pylint --exit-zero $python_files
- name: Check Black formatting - name: Check Black formatting
run: | run: |
python_files=$(find . -name "*.py" -type f) python_files=$(find . -name "*.py" -type f)
@@ -38,5 +38,5 @@ jobs:
echo "No Python files found to lint" echo "No Python files found to lint"
exit 0 exit 0
fi fi
black --check $python_files black --check $python_files

4
.gitignore vendored
View File

@@ -1,2 +1,4 @@
logs/* logs/*
**/__pycache__/ **/__pycache__/
.ansible/
.ansible/.lock