Skip to content

POC: hipFile Python API using Cython bindings #72

POC: hipFile Python API using Cython bindings

POC: hipFile Python API using Cython bindings #72

Workflow file for this run

# Run pylint over all the repo's Python files
name: pylint
on:
pull_request:
paths:
- '**.py'
- '**/ais-check'
- '.github/workflows/pylint.yml'
permissions:
contents: read
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0
- name: Set up pylint and black
run: |
python -m pip install --upgrade pip
python -m pip install pylint
python -m pip install black
- name: Lint all Python files
run: |
FILES=$(find . -type f \( -name "*.py" -o -name "ais-check" \))
if [ -z "$FILES" ]; then
echo "No Python files found!"
exit 1
fi
echo "Linting the following files:"
echo "$FILES"
for f in $FILES
do
python -m black --check --diff "$f"
python -m pylint "$f"
done