Configure isort to include source paths #337
Labels
🤖 aspect: dx
Concerns developers' experience with the codebase
🧰 goal: internal improvement
Improvement that benefits maintainers, not users
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: api
Related to the Django API
🏁 status: ready for work
Ready for work
Description
It would be nice to have our
isort
configurations in our.pre-commit-config.yaml
file set up to recognize the repo-specific source paths: https://pycqa.github.io/isort/docs/configuration/options.html#src-pathsThis would separate internal imports (1st party) from our other dependencies (3rd party) in the import statements. Presently the two are conflated and grouped in the same block:
https://github.com/WordPress/openverse-catalog/blob/dad3cb49618f38aadb3ae7772f98ca77180bf35c/openverse_catalog/dags/database/image_expiration_workflow.py#L8-L11
I believe this is reliant on #334 since we would also need use the repo-specific folders (i.e.
openverse_catalog
for the catalog repo,api/catalog
andingestion-server/ingestion_server
for the API repo).The text was updated successfully, but these errors were encountered: