diff --git a/pyproject.toml b/pyproject.toml index 422998a..96d655a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,28 +1,21 @@ [project] -name = "pytest-markdown-console" -version = "0.0.1" -description = "A pytest extension to test console code blocks in markdown files." -readme = "README.md" authors = [ - { name = "confarg", email = "280620574+confarg@users.noreply.github.com" } -] -requires-python = ">=3.12" -dependencies = [ - "pytest>=8", + { name = "confarg", email = "280620574+confarg@users.noreply.github.com" }, ] +dependencies = ["pytest>=8"] +description = "A pytest plugin to test console code blocks in markdown files." license = "MPL-2.0" +name = "pytest-markdown-console" +readme = "README.md" +requires-python = ">=3.12" +version = "0.0.1" [project.entry-points."pytest11"] markdown-console = "pytest_markdown_console" [build-system] -requires = ["uv_build>=0.11.13,<0.12.0"] build-backend = "uv_build" +requires = ["uv_build>=0.11.13,<0.12.0"] [dependency-groups] -dev = [ - "pre-commit>=4.6.0", - "pytest>=9.0.3", - "pytest-cov>=7.1.0", - "ty>=0.0.40", -] +dev = ["pre-commit>=4.6.0", "pytest>=9.0.3", "pytest-cov>=7.1.0", "ty>=0.0.40"] diff --git a/src/pytest_markdown_console/__init__.py b/src/pytest_markdown_console/__init__.py index 634e905..dc987c6 100644 --- a/src/pytest_markdown_console/__init__.py +++ b/src/pytest_markdown_console/__init__.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """pytest plugin for testing console code blocks in Markdown files.""" from .plugin import markdown_console_tmpdir as markdown_console_tmpdir diff --git a/src/pytest_markdown_console/models.py b/src/pytest_markdown_console/models.py index b6c4f71..6d75a2f 100644 --- a/src/pytest_markdown_console/models.py +++ b/src/pytest_markdown_console/models.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Data model for parsed console blocks.""" from __future__ import annotations diff --git a/src/pytest_markdown_console/parsing.py b/src/pytest_markdown_console/parsing.py index 9882bb9..e1990ac 100644 --- a/src/pytest_markdown_console/parsing.py +++ b/src/pytest_markdown_console/parsing.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Parsing of fenced console blocks from Markdown source.""" from __future__ import annotations diff --git a/src/pytest_markdown_console/plugin.py b/src/pytest_markdown_console/plugin.py index b6bdb2f..075f92a 100644 --- a/src/pytest_markdown_console/plugin.py +++ b/src/pytest_markdown_console/plugin.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """pytest collector and item classes for Markdown console blocks.""" from __future__ import annotations diff --git a/src/pytest_markdown_console/runner.py b/src/pytest_markdown_console/runner.py index 71431c4..bc3ab16 100644 --- a/src/pytest_markdown_console/runner.py +++ b/src/pytest_markdown_console/runner.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Command execution and output matching for console blocks.""" from __future__ import annotations diff --git a/tests/__init__.py b/tests/__init__.py index 6db6219..532098f 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1,5 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Test suite for pytest-markdown-console.""" diff --git a/tests/conftest.py b/tests/conftest.py index cc3e6f3..533571f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Pytest configuration for the test suite.""" pytest_plugins = ["pytester"] diff --git a/tests/test_parsing.py b/tests/test_parsing.py index 05c60bb..44be0ce 100644 --- a/tests/test_parsing.py +++ b/tests/test_parsing.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Tests for Markdown console block parsing.""" import pytest diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 4509eb4..6d23723 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Integration tests for the pytest plugin using pytester.""" import sys diff --git a/tests/test_runner.py b/tests/test_runner.py index 71d832c..fba2c1a 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + """Tests for command execution and output matching.""" from unittest.mock import MagicMock, patch