diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9231576d..06d36d4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: files: ^(.*\.toml)$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.2 + rev: v0.6.7 hooks: - id: ruff args: [ --exit-non-zero-on-fix, --fix ] @@ -56,4 +56,4 @@ repos: - repo: https://github.com/LilSpazJoekp/docstrfmt hooks: - id: docstrfmt - rev: v1.8.0 + rev: v1.9.0 diff --git a/docs/package_info/contributing.rst b/docs/package_info/contributing.rst index 827c89bd..19dd423a 100644 --- a/docs/package_info/contributing.rst +++ b/docs/package_info/contributing.rst @@ -134,8 +134,7 @@ Linting_: arg1, arg2, optional_arg1=None, - ): - ... + ): ... There is some exceptions to this: @@ -145,8 +144,7 @@ Linting_: .. code-block:: python class ExampleClass: - def pair(self, left, right): - ... + def pair(self, left, right): ... - If there is one or two mandatory arguments and some optional arguments, then the mandatory arguments may be positional (as long as it adheres to the previous point), @@ -172,8 +170,7 @@ Linting_: send_replies=True, spoiler=False, url=None, - ): - ... + ): ... Testing ------- @@ -250,18 +247,15 @@ Examples: @pytest.mark.recorder_kwargs(allow_playback_repeats=True) class TestClass: @pytest.mark.recorder_kwargs(match_on=["uri", "method", "body"]) - async def test_example(self): - ... + async def test_example(self): ... @pytest.mark.cassette_name("TestClass.test_example") @pytest.mark.recorder_kwargs(match_on=["uri", "method", "body"]) - async def test_example__different_assertion(self): - ... + async def test_example__different_assertion(self): ... @pytest.mark.add_placeholder(generated_data_a=generate_data_a()) @pytest.mark.add_placeholder(generated_data_b=generate_data_b()) - async def test_example__with_generated_placeholders(self): - ... + async def test_example__with_generated_placeholders(self): ... Documentation -------------