From cf44f9b01858a48badd2994c0d071b7648bed534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20de=20Menten?= Date: Wed, 3 Jul 2024 16:32:01 +0200 Subject: [PATCH 1/3] MAINT: update ruff to latest version on CI --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1e3aff..b58906e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,12 +16,12 @@ jobs: python-version: "3.11" # Pin ruff version to make sure we do not break our builds at the worst times - - name: Install Ruff 0.0.244 - run: pip install ruff==0.0.244 + - name: Install Ruff 0.5.1 + run: pip install ruff==0.5.1 - # Include `--format=github` to enable automatic inline annotations. + # Include `--output-format=github` to enable automatic inline annotations. - name: Run Ruff - run: ruff check --format=github . + run: ruff check --output-format=github . test: # name: Test (${{ matrix.python-version }}, ${{ matrix.os }}) From 8ffbfb82b4a8f2150e01837ebf8553ff506ec454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20de=20Menten?= Date: Wed, 3 Jul 2024 16:33:11 +0200 Subject: [PATCH 2/3] MAINT: added support for Python 3.12 --- .github/workflows/ci.yml | 2 +- setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b58906e..b7b8882 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: fail-fast: false matrix: # os: ["ubuntu-latest", "macos-latest", "windows-latest"] - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] defaults: run: diff --git a/setup.py b/setup.py index 58d342e..405e1f1 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,7 @@ def readlocal(fname): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Scientific/Engineering', 'Topic :: Software Development :: Libraries', ] From abf33f48c401a47153d2cb819f2a67e9090738b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20de=20Menten?= Date: Wed, 3 Jul 2024 16:41:09 +0200 Subject: [PATCH 3/3] MAINT: modernize ruff config --- pyproject.toml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 836c6d2..3dfc193 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,14 +21,6 @@ filterwarnings = [ [tool.ruff] -# Enable Pyflakes `E` and `F` codes by default. -select = ["E", "F"] -ignore = [] - -# Allow autofix for all enabled rules (when `--fix`) is provided. -# fixable = ["A", "B", "C", "D", "E", "F", "..."] -# unfixable = [] - # Exclude a variety of commonly ignored directories. exclude = [ ".eggs", @@ -39,6 +31,15 @@ exclude = [ "build", "dist", ] -per-file-ignores = {} +line-length = 120 -line-length = 120 \ No newline at end of file +[tool.ruff.lint] +# Enable Pyflakes `E` and `F` codes by default. +select = ["E", "F"] +ignore = [] + +# Allow autofix for all enabled rules (when `--fix`) is provided. +# fixable = ["A", "B", "C", "D", "E", "F", "..."] +# unfixable = [] + +per-file-ignores = {}