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.

Before user defined core settings to run project locally

After default core settings twincat system

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.2.tar.gz (4.0 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.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tc_prcmmt_hks-1.0.2.tar.gz
  • Upload date:
  • Size: 4.0 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.2.tar.gz
Algorithm Hash digest
SHA256 1753116e24bbbe7333036f302ee7726413dfa013405c7c468f5c928b81cce61e
MD5 77c9ed93c4e84fe4c038ec38f913c180
BLAKE2b-256 18b58350b3fa984c9f0f34f9f0675fcdbf9afcaeed3bc371b9d395f47796a384

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tc_prcmmt_hks-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a10b8bb1f0cc282153147f7001f19b7901ab5c746a557460a9a03f1348f181ac
MD5 ae3d00dfd0e4b9ef1408778a40e7fdc8
BLAKE2b-256 4351246b849b2c3e46b61d9ddeda56e47db5fc9690b49861c1593c13111be61c

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