Skip to content

Commit

Permalink
Merge pull request #870 from p12tic/ruff
Browse files Browse the repository at this point in the history
Use ruff for formatting
  • Loading branch information
p12tic authored Mar 7, 2024
2 parents e0edd5d + a967cab commit 9e29891
Show file tree
Hide file tree
Showing 12 changed files with 236 additions and 331 deletions.
33 changes: 7 additions & 26 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,18 @@ on:
- pull_request

jobs:
lint-black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install psf/black requirements
run: |
sudo apt-get update
sudo apt-get install -y python3 python3-venv
- uses: psf/black@stable
with:
options: "--check --verbose"
version: "~= 23.3"

lint-pylint:
lint-ruff:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- uses: actions/checkout@v3
name: Set up Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pylint
- name: Analysing the code with pylint
- name: Analysing the code with ruff
run: |
python -m compileall podman_compose.py
pylint podman_compose.py
# pylint $(git ls-files '*.py')
pip install -r test-requirements.txt
ruff format --check
Loading

0 comments on commit 9e29891

Please sign in to comment.