-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ZLLentz/twincat
ENH: Add Twincat Config and Hooks
- Loading branch information
Showing
15 changed files
with
2,617 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pre_commit_hooks/_version.py export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks.git | ||
rev: v2.5.0 | ||
hooks: | ||
- id: no-commit-to-branch | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-ast | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-xml | ||
- id: check-yaml | ||
exclude: '^(conda-recipe/meta.yaml)$' | ||
- id: debug-statements | ||
|
||
- repo: https://gitlab.com/pycqa/flake8.git | ||
rev: 3.7.9 | ||
hooks: | ||
- id: flake8 | ||
|
||
- repo: https://github.com/timothycrosley/isort.git | ||
rev: 4.3.21-2 | ||
hooks: | ||
- id: isort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
- id: twincat-lineids-remover | ||
name: TwinCAT LineID Remover | ||
description: Eliminate TwinCAT line ID lines | ||
entry: twincat-lineids-remover | ||
language: python | ||
files: .*\.TcPOU$ | ||
- id: leading-tabs-remover | ||
name: Leading Tabs Remover | ||
description: Replace leading tabs with 4 spaces | ||
entry: leading-tabs-remover | ||
language: python | ||
- id: twincat-leading-tabs-remover | ||
name: TwinCAT Leading Tabs Remover | ||
description: leading-tabs-remover configured for TwinCAT | ||
entry: leading-tabs-remover | ||
language: python | ||
files: .*\.(TcPOU|TcDUT|TcGVL)$ | ||
- id: xml-format | ||
name: XML Formatter | ||
description: Use lxml to beautify xml files | ||
entry: xml-format | ||
language: python | ||
types: [xml] | ||
- id: twincat-xml-format | ||
name: TwinCAT XML Formatter | ||
description: xml-format configured for TwinCAT | ||
entry: xml-format | ||
language: python | ||
files: .*\.(tmc|tpy|xml)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include versioneer.py | ||
include pre_commit_hooks/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks.git | ||
rev: v2.5.0 | ||
hooks: | ||
- id: no-commit-to-branch | ||
- id: trailing-whitespace | ||
files: \.(TcPOU|TcDUT|TcGVL)$ | ||
|
||
- repo: https://github.com/pcdshub/pre-commit-hooks.git | ||
rev: v1.0.0 | ||
hooks: | ||
- id: twincat-leading-tabs-remover | ||
- id: twincat-lineids-remover | ||
- id: twincat-xml-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
from ._version import get_versions | ||
|
||
__version__ = get_versions()['version'] | ||
del get_versions |
Oops, something went wrong.