-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: unify linter settings across indicators and add incremental formatting #1905
Conversation
9b6c484
to
98eaa3c
Compare
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.
looks pretty good!
do you wanna make the same changes to the "template" files too?
- https://github.com/cmu-delphi/covidcast-indicators/blob/main/_template_python/.pylintrc
- https://github.com/cmu-delphi/covidcast-indicators/blob/main/_template_python/Makefile
- https://github.com/cmu-delphi/covidcast-indicators/blob/main/_template_python/setup.py
b0d1c25
to
8e5a2b0
Compare
c24e3b0
to
46eb589
Compare
* all linters now use the same configuration file * add `make format` command to format all code * make sure all indicators pass with the new config * update the template files as well * add a new darker format job to CI * add python package caching * update README
This was approved a while ago, I'm just going to merge so the new pipeline code can benefit from these changes. |
looks like there were a lot of recent (force-pushed) changes since the old review... can you summarize them? |
Sure, I just
|
Description
Related to cmu-delphi/delphi-epidata#1328, unifying linting settings across indicators and these two repos.
Changelog
pyproject.toml
for all indicators anddelphi_utils
, removed all.pylintrc
.pylintrc
, instead of turning them into global rulessetup.py
files of each indicator while I was at it (ignored in git blame)make format
command to apply formatting to the changes on your current branch