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

Fix quality #183

Closed tkkuehn closed 2 years ago

tkkuehn commented 2 years ago

Proposed changes

Get all our quality checkers passing.

I couldn't get pylint to work properly in pre-commit, but it passes on my machine too.

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

Will take a closer look later this morning, but I think it's failing because of the two errors being thrown in the pylint on actions. We could either:

  1. Have it always return non-zero exit code (I don't love this idea)
  2. Or add an ignore for those errors for those classes / functions (I think I would lean towards this).
tkkuehn commented 2 years ago

Will take a closer look later this morning, but I think it's failing because of the two errors being thrown in the pylint on actions.

I think the pylint_flask_sqlalchemy dependency I added should fix this (at least it does on my machine). However, it clearly doesn't on the GH action, either because it's malfunctioning or the config in the pyproject.toml isn't being used for pylint. In any case, just adding the ignores inline is probably easiest.

kaitj commented 2 years ago

Will take a closer look later this morning, but I think it's failing because of the two errors being thrown in the pylint on actions.

I think the pylint_flask_sqlalchemy dependency I added should fix this (at least it does on my machine). However, it clearly doesn't on the GH action, either because it's malfunctioning or the config in the pyproject.toml isn't being used for pylint. In any case, just adding the ignores inline is probably easiest.

Hmm okay, I'll play around with it a little more this morning and see if I can get that part working then.