From 45869dfde0f5d77d7c1cdb71a9967379f031274b Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Tue, 19 Nov 2024 16:07:08 -0600 Subject: [PATCH 1/5] Update requirements.txt --- docs/requirements.txt | 4 ++++ requirements.txt => tests/requirements.txt | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 docs/requirements.txt rename requirements.txt => tests/requirements.txt (62%) diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000..ace85d4 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,4 @@ +furo +sphinx +myst-parser +mdit-py-plugins>=0.3.0 diff --git a/requirements.txt b/tests/requirements.txt similarity index 62% rename from requirements.txt rename to tests/requirements.txt index 4b7f83e..e2ca090 100644 --- a/requirements.txt +++ b/tests/requirements.txt @@ -1,6 +1,5 @@ requests zstandard >=0.15 -# test pytest >=7 pytest-cov pytest-mock @@ -8,8 +7,3 @@ boto3 boto3-stubs[essential] bottle conda -# docs -furo -sphinx -myst-parser -mdit-py-plugins>=0.3.0 From d48a9a77941055bdee10790a586f8e5c54777b1c Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Tue, 19 Nov 2024 16:07:26 -0600 Subject: [PATCH 2/5] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1974394..108f6af 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,6 +5,25 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: + # standard end of line/end of file cleanup + - id: mixed-line-ending + - id: end-of-file-fixer + - id: trailing-whitespace + # ensure syntaxes are valid + - id: check-toml + - id: check-yaml + exclude: ^(conda\.)?recipe/meta.yaml + # catch git merge/rebase problems + - id: check-merge-conflict + # sort requirements files + - id: file-contents-sorter + files: | + (?x)^( + docs/requirements.txt | + tests/requirements.*\.txt + ) + args: [--unique] + # other - id: check-added-large-files - id: check-ast - id: fix-byte-order-marker @@ -14,11 +33,6 @@ repos: - id: check-shebang-scripts-are-executable - id: debug-statements - id: detect-private-key - - id: mixed-line-ending - - id: end-of-file-fixer - - id: trailing-whitespace - - id: check-yaml - exclude: conda.recipe/meta.yaml - repo: https://github.com/asottile/pyupgrade rev: v3.19.0 hooks: @@ -36,3 +50,17 @@ repos: rev: 7.1.1 hooks: - id: flake8 + - repo: meta + # see https://pre-commit.com/#meta-hooks + hooks: + - id: check-hooks-apply + - id: check-useless-excludes + - repo: local + hooks: + - id: git-diff + name: git diff + entry: git diff --exit-code + language: system + pass_filenames: false + always_run: true + From 0752d964c9a5823fd8c55ba4f111939b80d2bad6 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Tue, 19 Nov 2024 16:07:28 -0600 Subject: [PATCH 3/5] Create dependabot.yml --- .github/dependabot.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..abc5eb0 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,22 @@ +version: 2 +updates: + - package-ecosystem: pip + directory: /docs/ + schedule: + interval: monthly + allow: + # Allow only production updates for Sphinx + - dependency-name: sphinx + dependency-type: production + groups: + docs: + patterns: + - '*' + - package-ecosystem: github-actions + directory: /.github/workflows + schedule: + interval: monthly + groups: + workflows: + patterns: + - '*' From 39a84d3aeb4f93d7c71b8e731c54265924873898 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Tue, 19 Nov 2024 16:08:24 -0600 Subject: [PATCH 4/5] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 108f6af..4bb7977 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,6 @@ repos: - id: check-ast - id: fix-byte-order-marker - id: check-case-conflict - - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-shebang-scripts-are-executable - id: debug-statements @@ -63,4 +62,3 @@ repos: language: system pass_filenames: false always_run: true - From 32cd2033c16f77734f06e026ca5c0160a72271c4 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Tue, 19 Nov 2024 16:08:28 -0600 Subject: [PATCH 5/5] Pre-commit --- docs/requirements.txt | 4 ++-- tests/requirements.txt | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index ace85d4..f34c092 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,4 +1,4 @@ furo -sphinx -myst-parser mdit-py-plugins>=0.3.0 +myst-parser +sphinx diff --git a/tests/requirements.txt b/tests/requirements.txt index e2ca090..b45110e 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,9 +1,9 @@ -requests -zstandard >=0.15 -pytest >=7 -pytest-cov -pytest-mock boto3 boto3-stubs[essential] bottle conda +pytest >=7 +pytest-cov +pytest-mock +requests +zstandard >=0.15