diff --git a/package-structure-code/code-style-linting-format.md b/package-structure-code/code-style-linting-format.md index 7e92c0eed..e41056658 100644 --- a/package-structure-code/code-style-linting-format.md +++ b/package-structure-code/code-style-linting-format.md @@ -214,6 +214,7 @@ Depending on your project, you might want to add the following to sort imports c :::{literalinclude} ../examples/pure-hatch/pyproject.toml :language: toml :start-at: [tool.ruff.isort] +:end-before: [tool.pytest.ini_options] ::: ## How to use code formatter in your local workflow diff --git a/package-structure-code/pyproject-toml-python-package-metadata.md b/package-structure-code/pyproject-toml-python-package-metadata.md index 46bdd09e7..08d9b5ada 100644 --- a/package-structure-code/pyproject-toml-python-package-metadata.md +++ b/package-structure-code/pyproject-toml-python-package-metadata.md @@ -195,6 +195,7 @@ Then specify dependency groups as follows: :::{literalinclude} ../examples/pure-hatch/pyproject.toml :language: toml :start-at: [project.optional-dependencies] +:end-before: [tool.ruff] ::: Following the above example, you install dependencies like this: