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

Improve imports and formatting #38

Open
IonMich opened this issue Jan 16, 2023 · 0 comments
Open

Improve imports and formatting #38

IonMich opened this issue Jan 16, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@IonMich
Copy link
Owner

IonMich commented Jan 16, 2023

Django can recognize Model names by their string "appname.modelname" in the definitions of ForeignField and ManyToManyField. So many imports can be removed.

Additionally introduce a formatter (black) and outline the pre-commit workflow in a contribution guide. Add black in github actions or CI for push and merge requests. Remove the first black compatible commit from git blame.

@IonMich IonMich added enhancement New feature or request documentation Improvements or additions to documentation labels Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant