diff --git a/.github/workflows/rst_check.yml b/.github/workflows/rst_check.yml deleted file mode 100644 index c443d29..0000000 --- a/.github/workflows/rst_check.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: rst_check - -on: [push, pull_request] - -jobs: - check_syntax: - name: RST Syntax Check - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - - - name: Update pip and setuptools - run: | - python -m pip install --upgrade pip setuptools - - - name: Install rstcheck - run: | - python -m pip install rstcheck - - - name: Run rstcheck - run: | - rstcheck README.rst diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24e48f4..8d45958 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,3 +20,8 @@ repos: - id: flake8 additional_dependencies: [flake8-bugbear] exclude: ^tests/b.* + + - repo: https://github.com/rstcheck/rstcheck + rev: v6.2.0 + hooks: + - id: rstcheck