afids / afids-validator

Validator for the anatomical fiducial placement protocol
https://validator.afids.io
GNU General Public License v3.0
2 stars 4 forks source link

Pre-commit and poetry tasks #181

Closed kaitj closed 2 years ago

kaitj commented 2 years ago

Proposed changes

This PR adds the following:

I have pointed this PR to poetry_setup rather than master as that should be merged first.

Types of changes

What types of changes does your code introduce? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you are unsure about any of the choices, don't hesitate to ask!

Notes

All PRs will undergo the unit testing before being reviewed. You may be requested to explain or make additional changes before the PR is accepted.

_PR template was adopted from appium_

kaitj commented 2 years ago

Did we want to try to resolve potential warnings as part of this PR or separate (the linting is likely still to fail or output a long list for now).

tkkuehn commented 2 years ago

Lets fix the rest of them in a separate PR

tkkuehn commented 2 years ago

Oh, should we use poethepoet in the quality check actions now?

kaitj commented 2 years ago

This was actually a question I had when I was looking at the snakebids actions since this basically copies that workflow. The action and the poe task differ in one minor way: the poe task actually performs the sorting and corrections but the action only performs checks for isort and black.

Thinking about it some more, if we resolve all the warnings and ensure pre-commit is run, than we can update the poe task to perform the check and use that in the action.

tkkuehn commented 2 years ago

Yeah I don't think we'll want to perform the corrections in the workflow, so I'm fine either way.