ansys / grantami-bomanalytics-openapi

Autogenerated client library for the Granta MI Compliance API
MIT License
1 stars 0 forks source link

Add pre-commit config and run in CI #131

Closed Andy-Grigg closed 4 months ago

Andy-Grigg commented 4 months ago

Closes #127

Add a pre-commit config to this repo. The changes here are all as a result of running pre-commit run --all-files before committing.

Also add pre-commit run --all-files to the code generation CI, replacing the current black invocation.

According to https://pre-commit.ci/, the CI service will fix PRs, but won't push for commits made by bots. I understand that to mean we need to invoke pre-commit manually in our CI.