From f7e10b0a386eb5af20ae5d773944af9318464d24 Mon Sep 17 00:00:00 2001 From: Nicholas Felt Date: Wed, 8 May 2024 14:37:17 -0700 Subject: [PATCH] docs: Update dependency for building docs. --- .pre-commit-config.yaml | 2 +- docs/requirements.txt | 2 +- pyproject.toml | 4 ++-- scripts/update_development_dependencies.py | 6 ++++++ tests/requirements.txt | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc458aee..a97b119d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: - id: remove-tabs - id: forbid-tabs - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.2 + rev: 0.28.3 hooks: - id: check-readthedocs - id: check-dependabot diff --git a/docs/requirements.txt b/docs/requirements.txt index 185d68d1..3773bf82 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -20,7 +20,7 @@ markupsafe==2.1.5 ; python_version >= "3.8" and python_version < "4.0" mergedeep==1.3.4 ; python_version >= "3.8" and python_version < "4.0" mkdocs==1.6.0 ; python_version >= "3.8" and python_version < "4.0" mkdocs-autorefs==1.0.1 ; python_version >= "3.8" and python_version < "4.0" -mkdocs-ezglossary-plugin==1.6.8 ; python_version >= "3.8" and python_version < "4.0" +mkdocs-ezglossary-plugin==1.6.10 ; python_version >= "3.8" and python_version < "4.0" mkdocs-gen-files==0.5.0 ; python_version >= "3.8" and python_version < "4.0" mkdocs-get-deps==0.2.0 ; python_version >= "3.8" and python_version < "4.0" mkdocs-include-markdown-plugin==6.0.6 ; python_version >= "3.8" and python_version < "4.0" diff --git a/pyproject.toml b/pyproject.toml index 9c2447be..a377d32d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,7 +112,7 @@ pre-commit = [ pre-commit-update = "^0.3.0" pyclean = "^3.0.0" pylint = "3.1.0" -pyright = "1.1.361" +pyright = "1.1.362" pyroma = "^4.2" python-semantic-release = "^9.6.0" ruff = "0.4.3" @@ -131,7 +131,7 @@ yamlfix = "^1.16.0" black = "^24.4.2" codespell = "^2.2.6" mkdocs = "^1.6.0" -mkdocs-ezglossary-plugin = "^1.6.8" +mkdocs-ezglossary-plugin = "^1.6.10" mkdocs-gen-files = "^0.5.0" mkdocs-include-markdown-plugin = "^6.0.5" mkdocs-literate-nav = "^0.6.1" diff --git a/scripts/update_development_dependencies.py b/scripts/update_development_dependencies.py index 58321d11..9357d232 100644 --- a/scripts/update_development_dependencies.py +++ b/scripts/update_development_dependencies.py @@ -5,6 +5,7 @@ """ import argparse +import contextlib import shlex import subprocess import sys @@ -112,6 +113,11 @@ def main() -> None: f'"{python_executable}" -m poetry export --only {group} ' f"--without-hashes --output {group}/requirements.txt" ) + # Sort the requirements files (ignore failures due to changed files + with contextlib.suppress(subprocess.CalledProcessError): + _run_cmd_in_subprocess( + f'"{python_executable}" -m pre_commit run --all requirements-txt-fixer' + ) if __name__ == "__main__": diff --git a/tests/requirements.txt b/tests/requirements.txt index aaea3c30..b2502a45 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,5 +1,5 @@ beautifulsoup4==4.12.3 ; python_version >= "3.8" and python_version < "4.0" -blinker==1.8.1 ; python_version >= "3.8" and python_version < "4.0" +blinker==1.8.2 ; python_version >= "3.8" and python_version < "4.0" certifi==2024.2.2 ; python_version >= "3.8" and python_version < "4.0" chardet==5.2.0 ; python_version >= "3.8" and python_version < "4.0" charset-normalizer==3.3.2 ; python_version >= "3.8" and python_version < "4.0"