TcOpen icon indicating copy to clipboard operation
TcOpen copied to clipboard

add pre-commit

Open rruiter87 opened this issue 1 year ago • 3 comments

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 avatar Jul 03 '24 11:07 rruiter87

Would close #731

rruiter87 avatar Jul 03 '24 11:07 rruiter87

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

@rruiter87 thanks a lot!

PTKu avatar Jul 04 '24 09:07 PTKu

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

rruiter87 avatar Jul 05 '24 06:07 rruiter87