fix: bump version to 1.0.1 #407
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
paths: | |
- 'superblockify/**.py' | |
- 'tests/**.py' | |
jobs: | |
run-black: | |
name: Run Black codestyle | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Run Black | |
uses: psf/black@stable | |
with: | |
src: './superblockify ./tests ./examples' | |
options: '--exclude "/(\.png|\.jpg|\.jpeg)/"' | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Fix code style issues with Black | |
commit_user_name: ${{ github.actor }} | |
commit_user_email: ${{ github.actor }}@users.noreply.github.com | |
file_pattern: '*.py' | |
run-pylint: | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
os: [ubuntu-latest] | |
name: Run Pylint code analyzer | |
needs: run-black | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pylint | |
run: pip install pylint | |
- name: Lint Source Code | |
run: pylint -d E0401,R0917 superblockify/ | |
# ignore import-errors first, analyze later with tests in anaconda environment | |
- name: Lint Tests | |
run: pylint -d E0401,R0801,R0917 tests/ | |
# also ignore code repetition in tests |