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

Apply line-length=120 to black format #509

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Apply line-length=120 to black format #509

merged 4 commits into from
Sep 12, 2024

Conversation

WenjieDu
Copy link
Owner

What does this PR do?

  1. config black with line-length=120 to format the code;
  2. update .pre-commit-config.yaml;

Before submitting

  • I have commented my code, particularly in hard-to-understand areas.
  • I have written necessary tests and already run them locally.

@coveralls
Copy link
Collaborator

coveralls commented Sep 12, 2024

Pull Request Test Coverage Report for Build 10822158814

Details

  • 437 of 618 (70.71%) changed or added relevant lines in 157 files are covered.
  • 85 unchanged lines in 39 files lost coverage.
  • Overall coverage increased (+0.02%) to 83.288%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pypots/cli/env.py 1 2 50.0%
pypots/cli/pypots_cli.py 0 1 0.0%
pypots/data/checking.py 0 1 0.0%
pypots/data/dataset/base.py 7 8 87.5%
pypots/data/load_specific_datasets.py 0 1 0.0%
pypots/data/saving/h5.py 3 4 75.0%
pypots/data/utils.py 2 3 66.67%
pypots/forecasting/csdi/core.py 5 6 83.33%
pypots/imputation/imputeformer/model.py 2 3 66.67%
pypots/imputation/itransformer/model.py 3 4 75.0%
Files with Coverage Reduction New Missed Lines %
pypots/imputation/imputeformer/model.py 1 94.74%
pypots/nn/modules/scinet/layers.py 1 91.59%
pypots/clustering/crli/model.py 1 88.16%
pypots/cli/pypots_cli.py 1 0.0%
pypots/base.py 1 71.43%
pypots/data/dataset/base.py 1 83.75%
pypots/nn/modules/reformer/local_attention.py 1 26.22%
pypots/data/load_specific_datasets.py 1 50.0%
pypots/nn/modules/vader/layers.py 1 94.92%
pypots/nn/modules/film/layers.py 1 76.92%
Totals Coverage Status
Change from base Build 10813968295: 0.02%
Covered Lines: 11263
Relevant Lines: 13523

💛 - Coveralls

@WenjieDu WenjieDu merged commit e20ede8 into dev Sep 12, 2024
9 checks passed
@WenjieDu WenjieDu deleted the (refactor)black_format branch September 13, 2024 08:59
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.

2 participants