Skip to content

build(deps): bump the github-actions group across 1 directory with 5 updates #76

build(deps): bump the github-actions group across 1 directory with 5 updates

build(deps): bump the github-actions group across 1 directory with 5 updates #76

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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 #v6.3.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