From 84d83054254202fd044f80e90522720f32219e70 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 27 Jun 2023 18:09:02 +0300 Subject: [PATCH 1/4] Version 0.21.0 release --- .github/workflows/test.yml | 7 ++++++- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7cbc130c4..39587db71 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,7 @@ jobs: fail-fast: false matrix: python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + task: ['tests', 'typesafety'] steps: - uses: actions/checkout@v3 @@ -55,6 +56,7 @@ jobs: poetry run pip install -U pip - name: Run tests + if: "${{ matrix.task }} == 'tests'" run: | poetry run flake8 . @@ -74,11 +76,14 @@ jobs: poetry run safety check --full-report poetry run python -m slotscheck returns --verbose + - name: Run tests + if: "${{ matrix.task }} == 'typesafety'" + run: | # We do this to speed up the build: poetry run pytest typesafety -p no:cov -o addopts="" --mypy-ini-file=setup.cfg - name: Upload coverage to Codecov - if: ${{ matrix.python-version }} == 3.8 + if: "${{ matrix.task }} == 'tests' && ${{ matrix.python-version }} == 3.11" uses: codecov/codecov-action@v3 with: file: ./coverage.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index d4ded1b56..8766c1d2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ incremental in minor, bugfixes only are patches. See [0Ver](https://0ver.org/). +## 0.21.0 + +### Features + +- Now requires `mypy>=1.4` +- Adds `[compatible-mypy]` extra for installation + + ## 0.20.1 ### Bugfixes diff --git a/pyproject.toml b/pyproject.toml index 8775f3de1..6738af0dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "returns" -version = "0.20.1" +version = "0.21.0" description = "Make your functions return something meaningful, typed, and safe!" license = "BSD-3-Clause" From 6c947b719e78682a44948386a0625e484897d31a Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 27 Jun 2023 18:28:43 +0300 Subject: [PATCH 2/4] Fix CI --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39587db71..6c758a6d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,7 +56,7 @@ jobs: poetry run pip install -U pip - name: Run tests - if: "${{ matrix.task }} == 'tests'" + if: ${{ matrix.task }} == 'tests' run: | poetry run flake8 . @@ -76,14 +76,14 @@ jobs: poetry run safety check --full-report poetry run python -m slotscheck returns --verbose - - name: Run tests - if: "${{ matrix.task }} == 'typesafety'" + - name: Run typesafety tests + if: ${{ matrix.task }} == 'typesafety' run: | # We do this to speed up the build: poetry run pytest typesafety -p no:cov -o addopts="" --mypy-ini-file=setup.cfg - name: Upload coverage to Codecov - if: "${{ matrix.task }} == 'tests' && ${{ matrix.python-version }} == 3.11" + if: ${{ matrix.task }} == 'tests' && ${{ matrix.python-version }} == 3.11 uses: codecov/codecov-action@v3 with: file: ./coverage.xml From 23f6ecaa7c83cf3bee791ada64e27df673c82eb1 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 27 Jun 2023 18:33:51 +0300 Subject: [PATCH 3/4] Fix CI --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c758a6d9..ed422f9b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,7 +56,7 @@ jobs: poetry run pip install -U pip - name: Run tests - if: ${{ matrix.task }} == 'tests' + if: matrix.task == 'tests' run: | poetry run flake8 . @@ -77,13 +77,13 @@ jobs: poetry run python -m slotscheck returns --verbose - name: Run typesafety tests - if: ${{ matrix.task }} == 'typesafety' + if: matrix.task == 'typesafety' run: | # We do this to speed up the build: poetry run pytest typesafety -p no:cov -o addopts="" --mypy-ini-file=setup.cfg - name: Upload coverage to Codecov - if: ${{ matrix.task }} == 'tests' && ${{ matrix.python-version }} == 3.11 + if: matrix.task == 'tests' && matrix.python-version == 3.11 uses: codecov/codecov-action@v3 with: file: ./coverage.xml From 93969f7e1abae4bb015bd90b818dfcaa69330e2f Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 27 Jun 2023 18:34:35 +0300 Subject: [PATCH 4/4] Fix CI --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed422f9b2..23ee23d69 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -83,7 +83,7 @@ jobs: poetry run pytest typesafety -p no:cov -o addopts="" --mypy-ini-file=setup.cfg - name: Upload coverage to Codecov - if: matrix.task == 'tests' && matrix.python-version == 3.11 + if: "matrix.task == 'tests' && matrix.python-version == 3.11" uses: codecov/codecov-action@v3 with: file: ./coverage.xml