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

Suggestion for Package Setup #1

Merged
merged 12 commits into from
May 2, 2024
Merged

Suggestion for Package Setup #1

merged 12 commits into from
May 2, 2024

Conversation

se-jaeger
Copy link
Contributor

@se-jaeger se-jaeger commented Feb 27, 2024

Then main change is that I downgraded to 3.9 because not all packages support 3.12 already. This would cause problems when someone requires this package and another one depending on python<3.12. See: https://pyreadiness.org/3.12/

Further, I added mypy and its pre-commit hook.

The changes I made for the ruff settings are mainly using its formatter, fix the rules if possible, apply all rules to ipynb notebooks, enforce google pydocs, and removed many of the ignores rules. Also there are some code changes that fix those issues.

Lastly, there are some GH actions running ruff and mypy (with python 3.0 to 3.11) over PRs in case someone skipped the pre-commit hooks. The printed issues will be shown inline in the Files changed tab.

se-jaeger and others added 6 commits March 1, 2024 18:24
I added an abstract base class for ErrorType, refined the low_level api
a bit and implemented a Mojibake ErrorType.

The code currently doesn't work and needs to be fixed a bit, but the
general idea should be clear.

---------

Co-authored-by: Sebastian Jäger <git@sebastian-jaeger.me>
@philipp-jung philipp-jung merged commit 66cf59c into main May 2, 2024
9 of 18 checks passed
@philipp-jung philipp-jung deleted the seja-package-setup branch May 2, 2024 06:27
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

Successfully merging this pull request may close these issues.

2 participants