Skip to content

Commit

Permalink
Update pre-commit configuration
Browse files Browse the repository at this point in the history
Restrict workflow runs based on paths
  • Loading branch information
dormant-user committed Jun 27, 2024
1 parent 281142f commit b5f0c8f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
push:
branches:
- master
paths:
- '**/*.md'
- '!jarvis/**'
- '!docs/**'
- '!docs_gen/**'

jobs:
none-shall-pass:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
push:
branches:
- master
paths:
- jarvis/**
workflow_dispatch:

jobs:
Expand Down
17 changes: 7 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,32 @@ fail_fast: true
exclude: ^(notebooks/|scripts/|.github/|docs/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
# - id: check-json
- id: check-shebang-scripts-are-executable
- id: check-json
- id: check-merge-conflict
# - id: check-symlinks
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: debug-statements
# - id: destroyed-symlinks
- id: detect-aws-credentials
- id: detect-private-key
- id: end-of-file-fixer
# - id: file-contents-sorter
- id: file-contents-sorter
- id: fix-byte-order-marker
- id: forbid-submodules
- id: mixed-line-ending
- id: name-tests-test
# - id: pretty-format-json
- id: requirements-txt-fixer
# - id: sort-simple-yaml
- id: sort-simple-yaml
- id: trailing-whitespace

- repo: https://github.com/psf/black
Expand All @@ -40,7 +37,7 @@ repos:
exclude: docs_gen/

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MANIFEST.in is mandatory due to a wire range of filetypes
# MANIFEST.in is mandatory due to a wide range of filetypes
global-exclude .env
global-exclude *.yaml
global-exclude .DS_Store
Expand Down

0 comments on commit b5f0c8f

Please sign in to comment.