Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pre-commit #736

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
Open

add pre-commit #736

wants to merge 14 commits into from

Conversation

rruiter87
Copy link
Collaborator

I've added some pre-commits:

  • For twincat files
  • Configured STweep.CLI
  • For markdown files
  • For c# (cshapier). To install it run dotnet tool install -g csharpier

As you can see there are a lot of changes.

You can also play around with it on your local system, if you don't check out the latest commit, because that one already has all the changes applied.

To test, ensure you have python installed and then run pip install pre-commit. To run all the pre-commits on the project run pre-commit run --all-files. You can remove or comment out some of the pre-commit hooks to see what each one does.

I've currently set the targeted Twincat version at --target-version=3.1.4024.56 in the .pre-commit-config.yaml. Not sure if this is the one you want.

@rruiter87
Copy link
Collaborator Author

Would close #731

@PTKu PTKu requested a review from peterbarancek July 4, 2024 09:56
@PTKu
Copy link
Member

PTKu commented Jul 4, 2024

@peterbarancek have a look at this please when available... I'll back in 3 weeks 🗡️

@rruiter87 thanks a lot!

@rruiter87
Copy link
Collaborator Author

Enjoy your (I guess) holidays, Peter! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants