From c482d8cb3dfa7e7b577ade85f804bab8288a4d9f Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Tue, 14 Jan 2025 13:54:33 -0600 Subject: [PATCH] Support Pint 0.24 (#104) * Test against Pint 0.24 * Loosen `mypy` constraint --- .github/workflows/ci.yaml | 4 ++-- devtools/conda-envs/test_env.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 763a412..f716fd0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,7 +22,7 @@ jobs: os: [macOS-latest, ubuntu-latest] openmm: ["true", "false"] python-version: ["3.10", "3.11", "3.12"] - pint-version: ["0.21", "0.22", "0.23"] + pint-version: ["0.24"] env: CI_OS: ${{ matrix.os }} @@ -69,7 +69,7 @@ jobs: run: python -m pytest $PYTEST_ARGS downstream_dummy/tests/ - name: Run mypy - if: ${{ matrix.python-version == '3.12' && matrix.openmm == 'true' }} + if: ${{ matrix.python-version == '3.12' }} run: python -m mypy -p "openff.units" && python -m mypy downstream_dummy/ --exclude=downstream_dummy/build/ - name: Run docexamples diff --git a/devtools/conda-envs/test_env.yaml b/devtools/conda-envs/test_env.yaml index f56fb40..948059f 100644 --- a/devtools/conda-envs/test_env.yaml +++ b/devtools/conda-envs/test_env.yaml @@ -16,5 +16,5 @@ dependencies: - uncertainties # Typing - - mypy =1.9 + - mypy - types-setuptools