add pre-commit
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.
Would close #731
@peterbarancek have a look at this please when available... I'll back in 3 weeks 🗡️
@rruiter87 thanks a lot!
Enjoy your (I guess) holidays, Peter! :)