From 676ac2450ab6e7fce597a020b7b260fe90e18206 Mon Sep 17 00:00:00 2001 From: "W. Augusto Andreoli" Date: Sun, 12 Nov 2023 02:12:41 +0100 Subject: [PATCH] fix(style): move "build" to readthedocs.toml --- README.rst | 2 -- docs/library.rst | 2 -- pyproject.toml | 1 - src/nitpick/resources/python/readthedocs.toml | 6 ++++++ src/nitpick/resources/python/stable.toml | 8 -------- tests/test_builtin/python/readthedocs/.readthedocs.yaml | 4 ++++ tests/test_builtin/python/stable/.readthedocs.yaml | 4 ---- 7 files changed, 10 insertions(+), 17 deletions(-) delete mode 100644 src/nitpick/resources/python/stable.toml delete mode 100644 tests/test_builtin/python/stable/.readthedocs.yaml diff --git a/README.rst b/README.rst index 4d158064..b0c3880d 100644 --- a/README.rst +++ b/README.rst @@ -300,8 +300,6 @@ python - `Read the Docs `_ * - `py://nitpick/resources/python/sonar-python `_ - `SonarQube Python plugin `_ - * - `py://nitpick/resources/python/stable `_ - - Current stable Python version * - `py://nitpick/resources/python/tox `_ - `tox `_ diff --git a/docs/library.rst b/docs/library.rst index ca228991..dd40e371 100644 --- a/docs/library.rst +++ b/docs/library.rst @@ -141,8 +141,6 @@ python - `Read the Docs `_ * - :gitref:`py://nitpick/resources/python/sonar-python ` - `SonarQube Python plugin `_ - * - :gitref:`py://nitpick/resources/python/stable ` - - Current stable Python version * - :gitref:`py://nitpick/resources/python/tox ` - `tox `_ diff --git a/pyproject.toml b/pyproject.toml index 4dd7c672..cb986c9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,6 @@ line-length = 120 style = [ "nitpick-style", "py://nitpick/resources/python/38.toml", - "py://nitpick/resources/python/stable.toml", ] [tool.poetry] diff --git a/src/nitpick/resources/python/readthedocs.toml b/src/nitpick/resources/python/readthedocs.toml index 26f9349e..bf6f4c9d 100644 --- a/src/nitpick/resources/python/readthedocs.toml +++ b/src/nitpick/resources/python/readthedocs.toml @@ -7,6 +7,12 @@ url = "https://github.com/readthedocs/readthedocs.org" version = 2 formats = "all" +[".readthedocs.yaml".build] +os = "ubuntu-22.04" + +[".readthedocs.yaml".build.tools] +python = "3.11" + [".readthedocs.yaml".sphinx] configuration = "docs/conf.py" diff --git a/src/nitpick/resources/python/stable.toml b/src/nitpick/resources/python/stable.toml deleted file mode 100644 index 2c56bbcb..00000000 --- a/src/nitpick/resources/python/stable.toml +++ /dev/null @@ -1,8 +0,0 @@ -[nitpick.meta] -name = "Current stable Python version" - -[".readthedocs.yaml".build] -os = "ubuntu-22.04" - -[".readthedocs.yaml".build.tools] -python = "3.11" diff --git a/tests/test_builtin/python/readthedocs/.readthedocs.yaml b/tests/test_builtin/python/readthedocs/.readthedocs.yaml index b19f29c5..eb845c91 100644 --- a/tests/test_builtin/python/readthedocs/.readthedocs.yaml +++ b/tests/test_builtin/python/readthedocs/.readthedocs.yaml @@ -1,5 +1,9 @@ version: 2 formats: all +build: + os: ubuntu-22.04 + tools: + python: '3.11' sphinx: configuration: docs/conf.py python: diff --git a/tests/test_builtin/python/stable/.readthedocs.yaml b/tests/test_builtin/python/stable/.readthedocs.yaml deleted file mode 100644 index 0ef7c278..00000000 --- a/tests/test_builtin/python/stable/.readthedocs.yaml +++ /dev/null @@ -1,4 +0,0 @@ -build: - os: ubuntu-22.04 - tools: - python: '3.11'