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

feat: unify linter settings across indicators and add incremental formatting #1905

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dshemetov
Copy link
Contributor

@dshemetov dshemetov commented Oct 25, 2023

Description

Related to cmu-delphi/delphi-epidata#1328, unifying linting settings across indicators and these two repos.

Changelog

  • Use a single pyproject.toml for all indicators and delphi_utils, removed all .pylintrc
    • Made sure all indicators pass with the new config
    • Inlined a few pylint ignores that were previously covered by a rule in a .pylintrc, instead of turning them into global rules
    • Some whitespace formatting in the process (on the files I touched)
    • The line-length max is now bumped up to 120 from 100
    • Sorted the dependencies in the setup.py files of each indicator while I was at it (ignored in git blame)
  • Add make format command to apply formatting to the changes on your current branch
  • Update the template files as well
  • Add a new darker format job to CI
  • Add python package caching to CI
  • Add "Lint and Format" section to README

Copy link
Contributor

@melange396 melange396 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dshemetov dshemetov force-pushed the ds/lint branch 4 times, most recently from e3c65d3 to b0d1c25 Compare May 15, 2024 20:17
dshemetov and others added 4 commits May 15, 2024 13:26
* 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
@dshemetov dshemetov changed the title feat: unify linter settings across indicators feat: unify linter settings across indicators and add incremental formatting May 15, 2024
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.

None yet

3 participants