Skip to content

Commit

Permalink
Initial 2.9.0 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmikuska committed Nov 21, 2024
1 parent 22693cd commit 4646460
Show file tree
Hide file tree
Showing 6 changed files with 737 additions and 757 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,43 @@
name: CI

on:

# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- main
- dev
pull_request:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"

- "3.13"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
if: matrix.python-version != '3.8'
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Lint with flake8
if: matrix.python-version != '3.8'
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
if: matrix.python-version != '3.8'
run: |
pytest
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
rev: v0.7.4
hooks:
- id: ruff
args: [ --fix ]
Expand All @@ -21,7 +21,7 @@ repos:
- id: isort
args: [--profile, black]
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
language_version: python3
Loading

0 comments on commit 4646460

Please sign in to comment.