From 9168e0d95e34a640ed4fe51c3b1251a9ccead24a Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Wed, 27 Mar 2024 07:58:21 -0300 Subject: [PATCH] Black reformatting --- requirements.txt | 134 ------------------ src/pulp_docs/cli.py | 1 + src/pulp_docs/mkdocs_macros.py | 1 + src/pulp_docs/navigation.py | 1 + src/pulp_docs/repository.py | 1 + .../fixtures/pulp-docs/staging_docs/index.md | 3 + 6 files changed, 7 insertions(+), 134 deletions(-) delete mode 100644 requirements.txt create mode 100644 tests/fixtures/pulp-docs/staging_docs/index.md diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 509fc5b..0000000 --- a/requirements.txt +++ /dev/null @@ -1,134 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile pyproject.toml -# -babel==2.14.0 - # via mkdocs-material -cairocffi==1.6.1 - # via cairosvg -cairosvg==2.7.1 - # via mkdocs-material -certifi==2023.11.17 - # via requests -cffi==1.16.0 - # via cairocffi -charset-normalizer==3.3.2 - # via requests -click==8.1.7 - # via - # mkdocs - # mkdocstrings -colorama==0.4.6 - # via - # griffe - # mkdocs-material -cssselect2==0.7.0 - # via cairosvg -defusedxml==0.7.1 - # via cairosvg -faker==21.0.0 - # via pulp-docs (pyproject.toml) -ghp-import==2.1.0 - # via mkdocs -griffe==0.38.1 - # via mkdocstrings-python -idna==3.6 - # via requests -jinja2==3.1.2 - # via - # mkdocs - # mkdocs-macros-plugin - # mkdocs-material - # mkdocstrings - # pulp-docs (pyproject.toml) -markdown==3.5.1 - # via - # mkdocs - # mkdocs-autorefs - # mkdocs-material - # mkdocstrings - # pymdown-extensions -markupsafe==2.1.3 - # via - # jinja2 - # mkdocs - # mkdocstrings -mergedeep==1.3.4 - # via mkdocs -mkdocs==1.5.3 - # via - # mkdocs-autorefs - # mkdocs-macros-plugin - # mkdocs-material - # mkdocstrings -mkdocs-autorefs==0.5.0 - # via mkdocstrings -mkdocs-macros-plugin==1.0.5 - # via pulp-docs (pyproject.toml) -mkdocs-material[imaging]==9.5.2 - # via pulp-docs (pyproject.toml) -mkdocs-material-extensions==1.3.1 - # via mkdocs-material -mkdocstrings[python]==0.24.0 - # via - # mkdocstrings-python - # pulp-docs (pyproject.toml) -mkdocstrings-python==1.7.5 - # via mkdocstrings -packaging==23.2 - # via mkdocs -paginate==0.5.6 - # via mkdocs-material -pathspec==0.12.1 - # via mkdocs -pillow==9.5.0 - # via - # cairosvg - # mkdocs-material -platformdirs==4.1.0 - # via - # mkdocs - # mkdocstrings -pycparser==2.21 - # via cffi -pygments==2.17.2 - # via mkdocs-material -pymdown-extensions==10.5 - # via - # mkdocs-material - # mkdocstrings -python-dateutil==2.8.2 - # via - # faker - # ghp-import - # mkdocs-macros-plugin -pyyaml==6.0.1 - # via - # mkdocs - # mkdocs-macros-plugin - # pymdown-extensions - # pyyaml-env-tag -pyyaml-env-tag==0.1 - # via mkdocs -regex==2023.10.3 - # via mkdocs-material -requests==2.31.0 - # via mkdocs-material -six==1.16.0 - # via python-dateutil -termcolor==2.4.0 - # via mkdocs-macros-plugin -tinycss2==1.2.1 - # via - # cairosvg - # cssselect2 -urllib3==2.1.0 - # via requests -watchdog==3.0.0 - # via mkdocs -webencodings==0.5.1 - # via - # cssselect2 - # tinycss2 diff --git a/src/pulp_docs/cli.py b/src/pulp_docs/cli.py index 39245c0..33cb6ac 100644 --- a/src/pulp_docs/cli.py +++ b/src/pulp_docs/cli.py @@ -3,6 +3,7 @@ It defines its interface. """ + import os import subprocess import sys diff --git a/src/pulp_docs/mkdocs_macros.py b/src/pulp_docs/mkdocs_macros.py index a1bae2b..e392dd0 100644 --- a/src/pulp_docs/mkdocs_macros.py +++ b/src/pulp_docs/mkdocs_macros.py @@ -14,6 +14,7 @@ 2. Configure mkdocstrings plugin to find the source code """ + import json import logging import os diff --git a/src/pulp_docs/navigation.py b/src/pulp_docs/navigation.py index 4dad37e..c0b62c6 100644 --- a/src/pulp_docs/navigation.py +++ b/src/pulp_docs/navigation.py @@ -24,6 +24,7 @@ 2. "/path/to/file.md" -> uses markdown '# title' or the filename, if former isnt present. """ + from __future__ import annotations from pathlib import Path diff --git a/src/pulp_docs/repository.py b/src/pulp_docs/repository.py index 83ac95d..df87ab9 100644 --- a/src/pulp_docs/repository.py +++ b/src/pulp_docs/repository.py @@ -3,6 +3,7 @@ Their purpose is to facilitate declaring and downloading the source-code. """ + from __future__ import annotations import logging diff --git a/tests/fixtures/pulp-docs/staging_docs/index.md b/tests/fixtures/pulp-docs/staging_docs/index.md new file mode 100644 index 0000000..109f7c6 --- /dev/null +++ b/tests/fixtures/pulp-docs/staging_docs/index.md @@ -0,0 +1,3 @@ +# Welcome + +index-from-pulp-docs.