diff --git a/.github/workflows/Docker_Image.yml b/.github/workflows/Docker_Image.yml index 1021399e..24cc8a2c 100644 --- a/.github/workflows/Docker_Image.yml +++ b/.github/workflows/Docker_Image.yml @@ -4,12 +4,6 @@ on: schedule: - cron: '0 0 * * *' workflow_dispatch: - release: - types: - - published - repository: - - 'SiEPIC/SiEPIC_EBeam_PDK' - push: branches: [ "master" ] paths: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f50469d0..2e0907ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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