diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 35be76966..edc2b6232 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -6,5 +6,5 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: psf/black@26.5.1 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 040d5eb81..bb65c1465 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d517a10a2..1e7916350 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,9 +13,9 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] fail-fast: false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} cache: 'pip' @@ -27,7 +27,7 @@ jobs: run: | python -m pytest --cov -v - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4.0.1 + uses: codecov/codecov-action@v7 with: token: ${{ secrets.CODECOV_TOKEN }} slug: python-rope/rope diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index f5c3b8aca..6a9b4c2cd 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -11,9 +11,9 @@ jobs: permissions: id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: '3.9' - name: Install dependencies diff --git a/CHANGELOG.md b/CHANGELOG.md index 69c06d28e..d53c13e55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - #870 Add default implementation for is_dir() (@lieryan) - #872 Fix unicode handling in patchedast (@lieryan) - #845 Support PEP 695 type parameters on class definitions and type aliases in patchedast (@marlon-costa-dc) +- #849 docs: resolve warnings and update Github Actions versions (@mcepl) # Release 1.14.0 diff --git a/docs/conf.py b/docs/conf.py index 0d322e45d..6eca80258 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -66,3 +66,6 @@ # Make sure the target is unique autosectionlabel_prefix_document = True + +# suppress third-party generated warnings +suppress_warnings = ["docutils"] diff --git a/docs/configuration.rst b/docs/configuration.rst index 7b336208a..a62b4afbf 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -70,7 +70,7 @@ autoimport.* Options .. autopytoolconfigtable:: rope.base.prefs.AutoimportPrefs imports.* Options ----------------- +----------------- .. autopytoolconfigtable:: rope.base.prefs.ImportPrefs diff --git a/docs/overview.rst b/docs/overview.rst index b9422ccd3..01076ade5 100644 --- a/docs/overview.rst +++ b/docs/overview.rst @@ -400,7 +400,7 @@ Extract Method In these examples ``${region_start}`` and ``${region_end}`` show the selected region for extraction: -.. code-block:: python +.. code-block:: none def a_func(): a = 1 @@ -421,7 +421,7 @@ After performing extract method we'll have: For multi-line extractions if we have: -.. code-block:: python +.. code-block:: none def a_func(): a = 1 @@ -1265,7 +1265,7 @@ After running ``mod1`` either SOA or DOA on this module you can test: ``mod2.py``: -.. code-block:: python +.. code-block:: none import mod1 diff --git a/ropetest/projecttest.py b/ropetest/projecttest.py index 144819e6d..1f1b37d83 100644 --- a/ropetest/projecttest.py +++ b/ropetest/projecttest.py @@ -2,7 +2,6 @@ import pathlib import tempfile import unittest -from unittest.mock import patch from textwrap import dedent from unittest.mock import patch