mediacloud / news-search-api

Internal API server that offers search access to the Media Cloud Online News Archive (in Elasticsearch).
https://mediacloud.org
GNU Affero General Public License v3.0
1 stars 3 forks source link

integrate linting and code formatting tools #35

Closed rahulbot closed 8 months ago

rahulbot commented 9 months ago

The central story-indexer has an implemented approach to standardizing our linting and code formatting for the broader project. We should integrate that into this code base to have things be more consistent.

pgulley commented 8 months ago

I will just copy the pre-commit config from story-indexer and clean it all up in a new branch- this will be first priority, since it's the largest pain I think .

pgulley commented 8 months ago

53 Will address this, pending a small lift to make mypy happy

Relatedly- project is missing a pyproject.toml, so configurations are scattered. Potentially a separate issue tbd

pgulley commented 8 months ago

Merged #53, so closing.