Skip to content

Commit

Permalink
add hook to example config
Browse files Browse the repository at this point in the history
  • Loading branch information
Roald Ruiter committed Jun 25, 2024
1 parent 2654154 commit 4e336a6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion forTwinCatRepos/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
files: \.(TcPOU|TcDUT|TcGVL)$

- repo: https://github.com/pcdshub/pre-commit-hooks.git
rev: v1.5.0
rev: v1.6.0
hooks:
- id: twincat-leading-tabs-remover
- id: twincat-lineids-remover
Expand All @@ -20,5 +20,13 @@ repos:
# Check if minimize id changes is selected in the plc project file.
# See https://www.youtube.com/watch?v=KKpBtaYjfWo&t=935s why to do this.
- id: minimize-id-changes
# Checks if TwinCAT versions match in different tsproj files, or if it matches the targeted one.
- id: check-twincat-versions
# Possible optional arguments
# --target-version: Set a version that you want the tsproj file to have
# --fix: Fix the version numbers if a target version is set
# --reason: Add a reason to the error message in case of a non-matching version.
# Uncomment this to use all arguments and/or remove the ones you don't need
# args: [--target-version=3.1.4024.20, --fix, --reason="This version has a crucial new feature"]
# Optional, if you use pytmc to generate EPICS IOCs:
# - id: pytmc-pragma-linter

0 comments on commit 4e336a6

Please sign in to comment.