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

Update .pre-commit-config.yaml with new hooks #279

Merged
merged 3 commits into from
Jan 15, 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
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