khanlab / scattr

BIDS app for structural connectivity between targeted regions
https://scattr.readthedocs.io/en/stable/
MIT License
4 stars 3 forks source link

Add snakefmt to precommit #16

Closed kaitj closed 1 year ago

kaitj commented 1 year ago

Proposed changes

Updates pyproject.toml to remove settings for pylint. Add settings for snakefmt

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.

tkkuehn commented 1 year ago

We should run pre-commit run --all-files, maybe in a separate PR. There will be a lot of changes...

We should also double check that the GH actions check align with the pre-commit hooks, maybe in the same PR. I think if the checks pass pre-commit run --all-files shouldn't want to change anything.

kaitj commented 1 year ago

We should run pre-commit run --all-files, maybe in a separate PR. There will be a lot of changes...

We should also double check that the GH actions check align with the pre-commit hooks, maybe in the same PR. I think if the checks pass pre-commit run --all-files shouldn't want to change anything.

I agree. We can maybe make this a separate issue so we don't forget and hold off until the individual .smk files have been checked over. I've started to run snakefmt as I've gone through and edited those files to try to catch and fix as many errors as possible there.

kaitj commented 1 year ago

See #18 for issue, will merge this in.