Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable dependabot #117

Merged
merged 5 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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:
- '*'
38 changes: 32 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,33 @@ 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
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- 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:
Expand All @@ -36,3 +49,16 @@ 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
4 changes: 4 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
furo
mdit-py-plugins>=0.3.0
myst-parser
sphinx
16 changes: 5 additions & 11 deletions requirements.txt → tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
requests
zstandard >=0.15
# test
pytest >=7
pytest-cov
pytest-mock
boto3
boto3-stubs[essential]
bottle
conda
# docs
furo
sphinx
myst-parser
mdit-py-plugins>=0.3.0
pytest >=7
pytest-cov
pytest-mock
requests
zstandard >=0.15
Loading