Skip to content

Commit

Permalink
Update to python3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian4cast committed Sep 26, 2024
1 parent 518e179 commit bf8c41b
Show file tree
Hide file tree
Showing 5 changed files with 2,803 additions and 1,833 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/check-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Lint
runs-on: ubuntu-latest
container:
image: python:3.7-slim
image: python:3.9-slim
steps:
- uses: actions/checkout@v2
- run: pip install black flake8 pyupgrade isort mypy
Expand All @@ -25,6 +25,8 @@ jobs:
--py3-plus \
--py36-plus \
--py37-plus \
--py38-plus \
--py39-plus \
$(find climetlab_maelstrom_power_production tests | grep "\.py$")
- run: black --config pyproject.toml climetlab_maelstrom_power_production tests
- run: flake8 --config pyproject.toml climetlab_maelstrom_power_production tests
Expand All @@ -41,11 +43,11 @@ jobs:
name: Test
runs-on: ubuntu-latest
container:
image: fabianemmi/python-poetry:3.7-1.1.13
image: fabianemmi/python-poetry:3.9-1.5.1
steps:
- uses: actions/checkout@v2
- name: Install package
run: poetry install --extras ci-tests --extras notebooks
run: poetry install --with ci-tests --with notebooks
- name: Run tests
run: |
poetry run pytest tests \
Expand All @@ -62,7 +64,7 @@ jobs:
needs: checks
runs-on: ubuntu-latest
container:
image: fabianemmi/python-poetry:3.7-1.1.13
image: fabianemmi/python-poetry:3.9-1.5.1
steps:
- uses: actions/checkout@v2
- name: Check version
Expand Down
17 changes: 10 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default_language_version:
python: python3.7
python: python3.9

repos:
- repo: local
Expand All @@ -10,16 +10,19 @@ repos:
language: system
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: [
"--py3-plus",
"--py36-plus",
"--py37-plus",
"--py38-plus",
"--py39-plus",
]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ["--maxkb=775"]
Expand All @@ -41,7 +44,7 @@ repos:
args: ["--config", "pyproject.toml"]
files: (climetlab_maelstrom_power_production|tests)
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
Expand All @@ -52,15 +55,15 @@ repos:
name: isort (pyi)
types: [pyi]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 7.1.1
hooks:
- id: flake8
files: (climetlab_maelstrom_power_production|tests)
args: ["--config", "pyproject.toml"]
additional_dependencies: [
flake8-bandit,
flake8-blind-except,
flake8-builtins-unleashed,
flake8-builtins,
flake8-bugbear,
flake8-comprehensions,
flake8-docstrings,
Expand All @@ -71,7 +74,7 @@ repos:
pydocstyle
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.961
rev: v1.11.2
hooks:
- id: mypy
files: climetlab_maelstrom_power_production
Expand Down
3 changes: 2 additions & 1 deletion climetlab_maelstrom_power_production/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__version__ = "0.2.0"
"""CliMetLab plugin to download MAELSTROM Application 6 data."""
__version__ = "0.2.2"
Loading

0 comments on commit bf8c41b

Please sign in to comment.