Skip to content

Commit

Permalink
Enable dependabot (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard authored Nov 21, 2024
1 parent f30cb81 commit dd7b130
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 17 deletions.
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

0 comments on commit dd7b130

Please sign in to comment.