From 34f85447a1439391a400d7c8abfa84d191721882 Mon Sep 17 00:00:00 2001 From: Dorian Turba <froggit.commit.z3jqj@simplelogin.com> Date: Wed, 10 Jan 2024 15:01:27 +0100 Subject: [PATCH] add pre-commit tests --- .pre-commit-config.yaml | 1 + tests/pre-commit_project/.pre-commit-config.yaml | 6 ++++++ tests/pre-commit_project/pyproject.toml | 1 + 3 files changed, 8 insertions(+) create mode 100644 tests/pre-commit_project/.pre-commit-config.yaml create mode 100644 tests/pre-commit_project/pyproject.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c08df26..7a0c580 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,3 +8,4 @@ repos: hooks: - id: toml-sort args: [ --check ] + exclude: ^tests/ diff --git a/tests/pre-commit_project/.pre-commit-config.yaml b/tests/pre-commit_project/.pre-commit-config.yaml new file mode 100644 index 0000000..4035d2a --- /dev/null +++ b/tests/pre-commit_project/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: https://github.com/pappasam/toml-sort + rev: v0.23.1 + hooks: + - id: toml-sort + args: [ --check ] diff --git a/tests/pre-commit_project/pyproject.toml b/tests/pre-commit_project/pyproject.toml new file mode 100644 index 0000000..b3ee945 --- /dev/null +++ b/tests/pre-commit_project/pyproject.toml @@ -0,0 +1 @@ +this is an invalid toml file, I guess -- GitLab