Skip to main content

Reusable pre‑commit hooks for TwinCAT projects

Project description

pre-commit-hooks for TwinCAT

Some out-of-the-box pre-commit hooks for TwinCAT.

See also: https://github.com/pre-commit/pre-commit

Using pre-commit-hooks with pre-commit

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/janbirki/pre-commit-hooks.git
    rev: v1.0.0  # Use the ref you want to point at
    hooks:
    -   id: trailing-whitespace
    # -   id: ...

Hooks available

TwinCAT default core settings

This hook is changing the core settings to default by deleting the Element "Settings" inside your *.tsproj file

It's needed to run unit tests in a simulated enviromnent, where the actual available cores doesn't matter.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tc_prcmmt_hks-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tc_prcmmt_hks-1.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tc_prcmmt_hks-1.0.0.tar.gz.

File metadata

  • Download URL: tc_prcmmt_hks-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tc_prcmmt_hks-1.0.0.tar.gz
Algorithm Hash digest
SHA256 69d8a15cd3be13ca0535346a593991cbfa81c504ddd8d5bebf2fb803e2ff6e3f
MD5 a8f58b4aa07eb538549b06ebca947e20
BLAKE2b-256 96fa36f204d4de938973042fea22caa4d4f1805c4bf21f6e3f72b5b86c5b36c9

See more details on using hashes here.

File details

Details for the file tc_prcmmt_hks-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tc_prcmmt_hks-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tc_prcmmt_hks-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f7004c5fe9c8a56d0eb2093a33d61664986700a51eee2642db3a4da2b38444
MD5 0b0174c54609d121b86395cc0371f970
BLAKE2b-256 51bc76b8a07b3d0685d346c4c01b2126af9c2e6a4d5eed8da61e1ce5ba5a90c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page