Commit 2bbcd51e authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Merge branch 'test-py314' into 'main'

Add test for Python 3.14

See merge request !19
parents 7faf4c28 37701822
Loading
Loading
Loading
Loading
Loading

.flake8

deleted100644 → 0
+0 −4
Original line number Diff line number Diff line
[flake8]
# E501: line too long (let black handle line length)
# W503: line break before binary operator (is incompatible with PEP 8)
ignore = E501,W503
+18 −18
Original line number Diff line number Diff line
stages:
  - check
  - test
  - build
  - test
  - release

default:
  image: python:3.11
  image: ghcr.io/astral-sh/uv:python3.13-bookworm

check:
  stage: check
  image: python:3.11
  before_script:
    - pip install pre-commit
  script:
    - pre-commit run --all-files
    - uvx pre-commit run --all-files

run-pytest:
  stage: test
  parallel:
    matrix:
      - PYTHON_VERSION: ["3.9", "3.10", "3.11", "3.12", "3.13"]
  image: python:${PYTHON_VERSION}
      - PYTHON_VERSION: ["3.10", "3.11", "3.12", "3.13", "3.14"]
  image: ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm
  before_script:
    - pip install .[dev]
    - uv venv -p python${PYTHON_VERSION}
    - uv pip install .[dev]
  script:
    - pytest -v --junitxml=report.xml --cov=gidgetlab tests
    - uv run pytest -v --junitxml=report.xml --cov=gidgetlab tests
  artifacts:
    when: always
    reports:
@@ -32,10 +30,9 @@ run-pytest:

build-pypi-package:
  stage: build
  before_script:
    - pip install build
  script:
    - python -m build
    - uvx --with build python -m build
    - uvx twine check dist/*
  artifacts:
    expire_in: 1 week
    paths:
@@ -45,9 +42,12 @@ release-pypi:
  stage: release
  variables:
    GIT_STRATEGY: none
  before_script:
    - pip install twine
  id_tokens:
    PYPI_ID_TOKEN:
      aud: pypi
  script:
    - twine upload dist/*
  only:
    - tags
    - uvx twine upload dist/*
  environment:
    name: release
  rules:
    - if: $CI_COMMIT_TAG
+8 −9
Original line number Diff line number Diff line
repos:
  - repo: https://github.com/ambv/black
    rev: 25.1.0
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.14.1
    hooks:
      - id: black
        language_version: python3
  - repo: https://github.com/pycqa/flake8
    rev: 7.1.1
    hooks:
      - id: flake8
      # Run the linter.
      - id: ruff-check
        args: [ --fix ]
      # Run the formatter.
      - id: ruff-format
  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.15.0
    rev: v1.18.2
    hooks:
      - id: mypy
        additional_dependencies:
+7 −0
Original line number Diff line number Diff line
Changelog
=========

2.1.1 (2025-10-19)
------------------

* Drop python 3.9 support
* Test on python 3.14
* Switch from flake8/black to ruff

2.1.0 (2025-02-09)
------------------

+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

try:
    from ._version import version as __version__
except ImportError as e:
except ImportError:
    __version__ = "0.0+unknown"


Loading