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.3.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.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tc_prcmmt_hks-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 3eae4179e39ec065ff9bf83ebb6c36b9719d3eb066cb6ac7e8590ad593d52de9
MD5 99abbed583cc69119fb2a9ef688784d5
BLAKE2b-256 e420f54f60e6c4b20bffbd574e05eb50e011e4db98e7f9abc98a79c2f174bddd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tc_prcmmt_hks-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5151da38929219569454361bdc04b27f31298be7763d6a4149c46711d1c733f3
MD5 22afaa15b902fd33cf46ad40618a8a2e
BLAKE2b-256 bd97f50a90b392197f3e307188ddf5ca52cb631e984b867f390a9e835a94cfde

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