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 pylint #192

Merged
merged 12 commits into from
Aug 7, 2023
Merged

Improve pylint #192

merged 12 commits into from
Aug 7, 2023

Conversation

chanhosuh
Copy link
Member

Description

Pylint has been complaining a lot more recently, so figured this is a good opportunity to review the codebase.
I fixed the duplication issue that creates a lot of noise in the output. For math-intense calcs, not much can be done, so i disabled a lot of the complaints related to those.

Hygiene checklist

  • [N/A] Changelog entry
  • Everything public has a Numpy-style docstring
    (modules, public functions, classes, and public methods)
  • Pylint score monotonically increased
  • Commit history is cleaned-up with minor changes squashed together
    and descriptive commit messages following Tim Pope's style

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@chanhosuh chanhosuh self-assigned this Aug 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2023

Coverage report

The coverage rate went from 74.17% to 74.55% ⬆️
The branch rate is 61%.

92.85% of new lines are covered.

Diff Coverage details (click to unfold)

curvesim/pool/cryptoswap/pool.py

100% of new lines are covered (84.07% of the complete file).

curvesim/metrics/base.py

100% of new lines are covered (83.33% of the complete file).

curvesim/pool/cryptoswap/calcs/tricrypto_ng.py

100% of new lines are covered (85.2% of the complete file).

curvesim/pipelines/utils.py

80% of new lines are covered (16.66% of the complete file).
Missing lines: 52

@chanhosuh chanhosuh merged commit 3a1c3f2 into main Aug 7, 2023
11 of 13 checks passed
@chanhosuh chanhosuh deleted the improve-pylint branch August 7, 2023 22:10
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.

1 participant