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

CI: update coverage #594

Merged
merged 4 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- bash: |
python -m coverage report
python -m coverage xml -o '$(Build.SourcesDirectory)/coverage.xml'
python -m coverage xml
python -m coverage html
python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
ls -l
Expand Down
16 changes: 12 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@ addopts =
--durations=0
--color=yes


[coverage:run]
parallel = True
#concurrency = thread, multiprocessing
concurrency = thread

[coverage:report]
exclude_lines =
pragma: no-cover
pass
if __name__ == .__main__.:
add_model_specific_args

[coverage:run]
# TODO, remove this ignores in future
omit =
pl_bolts/datamodules/*_datamodule.py
pl_bolts/datamodules/*_dataset.py


[flake8]
max-line-length = 120
exclude = .tox,*.egg,build,temp
Expand All @@ -38,6 +42,7 @@ ignore =
W504 # Ignore "Line break occurred after a binary operator"
W605 # Ignore "Invalid escape sequence 'x'"


[yapf]
based_on_style = pep8
spaces_before_comment = 2
Expand All @@ -50,20 +55,22 @@ ALLOW_SPLIT_BEFORE_DICT_VALUE = false
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
NO_SPACES_AROUND_SELECTED_BINARY_OPERATORS = false

# setup.cfg or tox.ini

[check-manifest]
ignore =
*.yml
.github
.github/*
.circleci


[metadata]
license_file = LICENSE
description-file = README.md
# long_description = file:README.md
# long_description_content_type = text/markdown


[isort]
known_first_party =
pl_bolts
Expand All @@ -75,6 +82,7 @@ order_by_type = False
multi_line_output = 3
include_trailing_comma = True


[mypy]
# Typing tests is low priority, but enabling type checking on the
# untyped test functions (using `--check-untyped-defs`) is still
Expand Down