Skip to content

Commit

Permalink
Merge pull request #268 from jasminabrar/master
Browse files Browse the repository at this point in the history
Adding pre-commit functionality to repo
lukasc-ubc authored Nov 25, 2023
2 parents b9769d4 + 005e251 commit 62b971c
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/PyCQA/bandit #checks for security vulnerabilities
rev: 1.7.5
hooks:
- id: bandit #
args: [--exit-zero]
# ignore all tests, not just tests data
exclude: ^tests/
2 changes: 1 addition & 1 deletion klayout/EBeam/pymacros/pcells_EBeam/Waveguide_SBend.py
Original file line number Diff line number Diff line change
@@ -104,4 +104,4 @@ def produce_impl(self):
box1 = Box(0, min(-w*3,h-w*3), length, max(w*3,h+w*3))
shapes(LayerDevRecN).insert(box1)

# print('2020/11/28 update')
# print('2020/11/28 update')
2 changes: 1 addition & 1 deletion klayout/EBeam/pymacros/pcells_EBeam/ebeam_bragg_te1550.py
Original file line number Diff line number Diff line change
@@ -148,4 +148,4 @@ def produce_impl(self):
path = Path([Point(0, 0), Point(length, 0)], 3*w)
shapes(LayerDevRecN).insert(path.simple_polygon())

# print('Done: ebeam_bragg_te1550')
# print('Done: ebeam_bragg_te1550')

0 comments on commit 62b971c

Please sign in to comment.