Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

refactor(kpi-controller): fix type errors and lint issues #979

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

Samyak2
Copy link
Contributor

@Samyak2 Samyak2 commented Jun 6, 2022

  • added Optional[] to types where missing
  • added missing docstrings
  • fixed type issues in run_anomaly_for_kpi
    • renamed end_date to help type checker recognize correctly
    • added an exception on else:
  • added ignores to SQLalchemy filters where applicable
  • added missing type annotations to get_anomaly_count
  • formatted using isort and black

- added `Optional[]` to types where missing
- added missing docstrings
- fixed type issues in `run_anomaly_for_kpi`
    - renamed `end_date` to help type checker recognize correctly
    - added an exception on `else:`
- added ignores to SQLalchemy filters where applicable
- added missing type annotations to `get_anomaly_count`
- formatted using `isort` and `black`
@Samyak2 Samyak2 requested a review from kartikay-bagla June 6, 2022 17:54
@gitpod-io
Copy link

gitpod-io bot commented Jun 6, 2022

@netlify
Copy link

netlify bot commented Jun 6, 2022

Deploy Preview for frontend-sb canceled.

Name Link
🔨 Latest commit 261fd0f
🔍 Latest deploy log https://app.netlify.com/sites/frontend-sb/deploys/629ecb04c0daa9000811088d

Also made the exception better.

Co-authored-by: Kartikay Bagla <[email protected]>
Copy link
Contributor

@kartikay-bagla kartikay-bagla left a comment

Choose a reason for hiding this comment

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

LGTM

@kartikay-bagla kartikay-bagla merged commit 4891758 into develop Jun 7, 2022
@kartikay-bagla kartikay-bagla deleted the clean-kpi-controller branch June 7, 2022 06:06
@Samyak2 Samyak2 added this to the v0.8.0 milestone Jun 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants