TcOpenGroup / TcOpen

Application framework for industrial automation built on top of TwinCAT3 and .NET.
https://docs.tcopengroup.org/
MIT License
292 stars 49 forks source link

add pre-commit #736

Open rruiter87 opened 4 months ago

rruiter87 commented 4 months ago

I've added some pre-commits:

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 commented 4 months ago

Would close #731

PTKu commented 4 months ago

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

@rruiter87 thanks a lot!

rruiter87 commented 4 months ago

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