diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9bb86a1..afd2f60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | diff --git a/.github/workflows/ci_automerge_dependabot.yml b/.github/workflows/ci_automerge_dependabot.yml index 1c3c338..2592840 100644 --- a/.github/workflows/ci_automerge_dependabot.yml +++ b/.github/workflows/ci_automerge_dependabot.yml @@ -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 }} diff --git a/.github/workflows/ci_cd_updated_main.yml b/.github/workflows/ci_cd_updated_main.yml index 430711f..c1f821b 100644 --- a/.github/workflows/ci_cd_updated_main.yml +++ b/.github/workflows/ci_cd_updated_main.yml @@ -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 diff --git a/.github/workflows/ci_dependabot.yml b/.github/workflows/ci_dependabot.yml index 2f9e59a..1af95b8 100644 --- a/.github/workflows/ci_dependabot.yml +++ b/.github/workflows/ci_dependabot.yml @@ -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: | @@ -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 diff --git a/.github/workflows/dic2owl_ci.yml b/.github/workflows/dic2owl_ci.yml index 3d0cec2..95de8ad 100644 --- a/.github/workflows/dic2owl_ci.yml +++ b/.github/workflows/dic2owl_ci.yml @@ -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: | @@ -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: | @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dcd8b8f..0489019 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +default_language_version: + python: python3.7 + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 @@ -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: @@ -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/.*$ diff --git a/dic2owl/requirements.txt b/dic2owl/requirements.txt index 3460cd9..d5672df 100644 --- a/dic2owl/requirements.txt +++ b/dic2owl/requirements.txt @@ -1,2 +1,2 @@ -EMMOntoPy>=0.2.0,<1 -PyCifRW>=4.4.3,<5 +EMMOntoPy>=0.6.0,<1 +PyCifRW>=4.4.5,<5 diff --git a/dic2owl/requirements_dev.txt b/dic2owl/requirements_dev.txt index ef4560a..ce1c125 100644 --- a/dic2owl/requirements_dev.txt +++ b/dic2owl/requirements_dev.txt @@ -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