Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests/Formatting/Linting #23

Open
isaaccorley opened this issue Jan 5, 2025 · 3 comments
Open

Tests/Formatting/Linting #23

isaaccorley opened this issue Jan 5, 2025 · 3 comments

Comments

@isaaccorley
Copy link
Contributor

This repo needs some tests for style and that each model still works (make sure urls aren't down, models still load, etc.). I recommend ruff for formatting/linting and pytest.

Any interest in me adding these?

@isaaccorley isaaccorley changed the title Test/Formatting Tests/Formatting/Linting Jan 5, 2025
@alexstoken
Copy link
Owner

I agree with all of this. We are using black for linting, and had some internal discussions about moving to ruff. @gmberton has been leading that effort and may have some thoughts.

The tests you mentioned would be very welcome. I do not have a lot of experience with pytest but would be happy to learn. We have some basic, self run tests via benchmark.py --task test to make sure the kpts produce correct homographies (w/in some margin of error).

Perhaps we could add GH Actions as well so these are run automatically?

@gmberton
Copy link
Collaborator

gmberton commented Jan 5, 2025

Agree on all you both said. It would be good to add test, as the current ones can surely be improved. I also don't have experience with pytest so @isaaccorley your help would be more than welcome.
And we're probably switching to ruff within one or two weeks, so probably we'll ditch black.
Another thing where we might need some help/guidance is proper versioning of the repo, for now we are not doing any of that

@isaaccorley
Copy link
Contributor Author

Cool yeah I'll work on adding some github actions similar to those used in TorchGeo.

I transitioned from black/isort/flake8/pyupgrade to ruff recently and never looked back. It simplifies a lot of config setup in pyproject.toml also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants