Skip to content

Commit

Permalink
Bump mypy version and Python runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Mar 1, 2024
1 parent 2981d80 commit d739e6f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
with:
python-version: "3.6"
python-version: "3.8"

- name: Install dependencies 🔧
if: steps.changes.outputs.code == 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v5"
with:
python-version: "3.6"
python-version: "3.8"

- name: Install dependencies (Linux) 🔧
if: ${{ matrix.os == 'ubuntu-20.04' && steps.changes.outputs.code == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ autodoc_exclude_members = [
]

[tool.mypy]
python_version = "3.6"
python_version = "3.8"
namespace_packages = true
check_untyped_defs = true
warn_unused_ignores = true
Expand Down
3 changes: 2 additions & 1 deletion repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ platforms:
- Windows
- Linux

python_deploy_version: 3.6
python_deploy_version: 3.8
mypy_version: "1.8.0"

# Versions to run tests for
python_versions:
Expand Down
14 changes: 7 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ requires =
[envlists]
test = py36, py37, py38, py39, py310, py311, py312
qa = mypy, lint
cov = py36, coverage
cov = py38, coverage

[testenv:.package]
setenv =
Expand Down Expand Up @@ -71,7 +71,7 @@ commands =
check-wheel-contents dist/

[testenv:lint]
basepython = python3.6
basepython = python3.8
changedir = {toxinidir}
ignore_errors = True
skip_install = True
Expand Down Expand Up @@ -101,33 +101,33 @@ deps =
commands = python3 -m flake8_rst_docstrings_sphinx src/pyms_nist_search tests MoNA_GCMS_Library --allow-toolbox {posargs}

[testenv:perflint]
basepython = python3.6
basepython = python3.8
changedir = {toxinidir}
ignore_errors = True
skip_install = True
deps = perflint
commands = python3 -m perflint pyms_nist_search {posargs}

[testenv:mypy]
basepython = python3.6
basepython = python3.8
ignore_errors = True
changedir = {toxinidir}
deps =
mypy==0.971
mypy==1.8.0
-r{toxinidir}/tests/requirements.txt
-r{toxinidir}/stubs.txt
commands = mypy src/pyms_nist_search tests MoNA_GCMS_Library {posargs}

[testenv:pyup]
basepython = python3.6
basepython = python3.8
skip_install = True
ignore_errors = True
changedir = {toxinidir}
deps = pyupgrade-directories
commands = pyup_dirs src/pyms_nist_search tests MoNA_GCMS_Library --py36-plus --recursive

[testenv:coverage]
basepython = python3.6
basepython = python3.8
skip_install = True
ignore_errors = True
whitelist_externals = /bin/bash
Expand Down

0 comments on commit d739e6f

Please sign in to comment.