Skip to content

Commit

Permalink
Update dependencies (#167)
Browse files Browse the repository at this point in the history
Update dependencies:
* Update pre-commit requirement from ~=3.3 to ~=3.4
* Update pylint requirement from ~=2.17 to ~=3.0

Update GH Actions:
* Bump actions/checkout from 3 to 4
* Bump chuhlomin/render-template from 1.7 to 1.8

Update pre-commit hooks.

Ensure Python 3.7 is supported throughout.

Pass 'python-version' input to GH Action actions/setup-python as a
string, not a float.


Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
CasperWA and dependabot[bot] authored Oct 9, 2023
1 parent 5a0594c commit f4c0bb3
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.7'

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_automerge_dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd_updated_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.DEPENDABOT_BRANCH }}
fetch-depth: 0
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci_dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ env.DEFAULT_REPO_BRANCH }}

- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.7'

- name: Install `pre-commit` and dependencies
run: |
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:

- name: Fetch PR body
id: pr_body
uses: chuhlomin/render-template@v1.7
uses: chuhlomin/render-template@v1.8
with:
template: .github/static/single_dependency_pr_body.txt

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/dic2owl_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.7'

- name: Install dependencies
run: |
Expand All @@ -35,12 +35,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.7'

- name: Install dependencies
run: |
Expand All @@ -64,10 +64,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ['3.7', '3.8', '3.9']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
default_language_version:
python: python3.7

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
Expand All @@ -19,7 +22,7 @@ repos:
exclude: ^.*(\.ttl|\.cif)$

- repo: https://github.com/ambv/black
rev: 23.9.1
rev: 23.3.0
hooks:
- id: black
args:
Expand All @@ -34,7 +37,7 @@ repos:
files: ^dic2owl/.*$

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.4.1
hooks:
- id: mypy
exclude: ^tests/.*$
Expand Down
4 changes: 2 additions & 2 deletions dic2owl/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
EMMOntoPy>=0.2.0,<1
PyCifRW>=4.4.3,<5
EMMOntoPy>=0.6.0,<1
PyCifRW>=4.4.5,<5
5 changes: 3 additions & 2 deletions dic2owl/requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pre-commit~=2.21; python_version<"3.8"
pre-commit~=3.3; python_version>="3.8"
pylint~=2.17
pre-commit~=3.4; python_version>="3.8"
pylint>=2.13.9,<3; python_version<"3.8"
pylint~=3.0; python_version>="3.8"
pytest~=7.4
pytest-cov~=4.1

0 comments on commit f4c0bb3

Please sign in to comment.