Skip to content

Commit

Permalink
CI: update coverage (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Mar 15, 2021
1 parent 9b7fdf8 commit a495d15
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
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

0 comments on commit a495d15

Please sign in to comment.