From 4328dfc18349aa9db96f3c608d9e0722c2eae802 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:34:34 +0200 Subject: [PATCH] Bump actions/checkout from 3 to 4 https://github.com/actions/checkout --- .github/workflows/publish.yml | 4 ++-- .github/workflows/push_pr.yml | 2 +- spec2nii/jmrui.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e660e90..2e20c91 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - run: python3 -m pip install --upgrade build && python3 -m build @@ -15,4 +15,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} - \ No newline at end of file + diff --git a/.github/workflows/push_pr.yml b/.github/workflows/push_pr.yml index 10c2c97..9caa5d5 100644 --- a/.github/workflows/push_pr.yml +++ b/.github/workflows/push_pr.yml @@ -14,7 +14,7 @@ jobs: os: ["ubuntu-latest"] python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true lfs: true diff --git a/spec2nii/jmrui.py b/spec2nii/jmrui.py index 498d6fe..9ce02bb 100644 --- a/spec2nii/jmrui.py +++ b/spec2nii/jmrui.py @@ -252,7 +252,7 @@ def readjMRUItxt(filename): data = [] recordData = False signal_index = 0 - with open(filename, 'r') as txtfile: + with open(filename) as txtfile: for line in txtfile: headerComp = headerRe.match(line) if headerComp: