Skip to content

Commit

Permalink
Merge pull request #279 from jasminabrar/master
Browse files Browse the repository at this point in the history
Update .pre-commit-config.yaml with new hooks
  • Loading branch information
lukasc-ubc authored Jan 15, 2024
2 parents a1a9e01 + cbea175 commit 5fc980f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/Docker_Image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
release:
types:
- published
repository:
- 'SiEPIC/SiEPIC_EBeam_PDK'

push:
branches: [ "master" ]
paths:
Expand Down
27 changes: 26 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,32 @@ repos:
- repo: https://github.com/PyCQA/bandit #checks for security vulnerabilities
rev: 1.7.5
hooks:
- id: bandit #
- id: bandit
args: [--exit-zero]
# ignore all tests, not just tests data
exclude: ^tests/

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml

- repo: https://github.com/charliermarsh/ruff-pre-commit #run ruff's linter and formatter
rev: "6c0ceaccffa1ebb1db1ea1a6d7289b50d29bfce2"
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]

- repo: https://github.com/psf/black
rev: 1b028cc9d99c2c2e82f9b727742539173a92a373
hooks:
- id: black #python code formatter

- repo: https://github.com/codespell-project/codespell #fix common misspellings in text files
rev: 38bc4a97f6e22827e86526148efa38f1044a97f8
hooks:
- id: codespell
additional_dependencies:
- tomli

0 comments on commit 5fc980f

Please sign in to comment.