mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-02 12:53:19 +01:00
762318093c
Black removes the burden of manual code formatting and is by now considered the standard Python formatting tool. https://black.readthedocs.io/en/stable/ Format all Python code with black. GitHub linting action is updated to ensure all files are formatted with Black. Signed-off-by: Piotr Husiatyński <phusiatynski@gmail.com>
30 lines
756 B
YAML
30 lines
756 B
YAML
name: Pylint
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.8", "3.9", "3.10"]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: psf/black@stable
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
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
|
|
run: |
|
|
python -m compileall podman_compose.py
|
|
pylint podman_compose.py
|
|
# pylint $(git ls-files '*.py')
|