-
Notifications
You must be signed in to change notification settings - Fork 20
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
Rewrite and refactor all of pycoast to meet minimum modern standards #63
Conversation
This could still definitely use a lot more work, but I've reduce the complexity a lot for the entire @lobsiger CodeFactor is finally happy 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I got tired of writing the same comment over and over, I think black should be fixed to allow 120 characters and not split stuff randomly.
Ok, your comments have been addressed. I mentioned pytest in the test document. I updated black from using its default 88 character line length to 120. |
Great, I can continue reviewing then :) Thanks!!! |
This should allow anyone using black (pre-commit or not) to have the same behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Mixing the refactoring with "blackification" didn't help either, maybe the next time we do this, we should do two separate PRs? But from what I can see, the tests didn't change in functionality, so I think we're good.
Yes, agreed. This started as a "add pre-commit" PR but to include all of the hooks I wanted it required rewriting most of the package. And yes, no behavior was intentionally changed. Merging now and then I could start working toward a config interface and automatically download the coastline files. |
@lobsiger I'm currently finishing my recovery from COVID and will need to submit a final report for one of my projects next week then catch up on all my other work. After all that, yes I'd like to look into a release. However, I noticed in the newest pre-commit PR #64 that one of the tests is failing with the new versions of dependencies. This test wasn't failing when this PR last ran it's CI. Debugging this test failure is the first major hurdle to getting a new release out. If you have any free time to investigate it would be much appreciated. Just narrowing the problem down to what versions of what dependencies causes the failure would be huge. |
This PR makes every change necessary to make pycoast pass basic formatting, linting, and complexity checks. To be sure of that I have enabled pre-commit.ci and added a pre-commit config that can be used by developers to ensure the quality of the code moving forward. I am almost done with the flake8 complexity issues and then there are a few bandit security issues I need to look into.
git diff origin/main **/*py | flake8 --diff