-
Notifications
You must be signed in to change notification settings - Fork 76
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
setup.cfg: Enforce 100% branch coverage #283
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7f2296a
setup.cfg: Use template
jayvdb c79378b
SettingsFillingTest: Add test for exception
jayvdb 91d5084
search_object_recursively: Add test for exception
jayvdb 6bc7126
assert_type_signature: Add doctest for exception
jayvdb 162a222
Info: Remove TypeError for improbable scenario
jayvdb 930a77c
setup.cfg: Enforce 100% branch coverage
jayvdb 7fef0b0
.travis.yml: Move moban to separate stage
jayvdb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
: "${MOBAN_BRANCH:=master}" | ||
|
||
if [ ! -d ../coala-mobans ]; then | ||
git clone https://gitlab.com/coala/mobans \ | ||
--branch=${MOBAN_BRANCH} ../coala-mobans | ||
fi | ||
|
||
moban | ||
git diff --exit-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
overrides: coala.yaml | ||
overrides: .nocover.yaml | ||
|
||
name: coala-quickstart | ||
contact: [email protected] | ||
|
@@ -44,9 +44,11 @@ configuration: | |
configuration_dir: ../coala-mobans/ | ||
targets: | ||
- setup.py: coala-setup.py.jj2 | ||
- setup.cfg: setup.cfg.jj2 | ||
- requirements.txt: requirements.txt.jj2 | ||
- test-requirements.txt: test-requirements.txt.jj2 | ||
- coala_quickstart/VERSION: VERSION.jj2 | ||
- coala_quickstart/__init__.py: __init__.py.jj2 | ||
- .ci/appveyor.yml: ci/appveyor.yml.jj2 | ||
- .ci/run_with_env.cmd: run_with_env.cmd | ||
- .ci/check_moban.sh: ci/check_moban.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
overrides: coala.yaml | ||
|
||
allow_generic_no_cover: true | ||
|
||
nocover_file_globs: | ||
# https://github.com/coala/coala-quickstart/issues/274 | ||
- coala_quickstart/generation/Bears.py | ||
# https://github.com/coala/coala-quickstart/issues/273 | ||
- coala_quickstart/generation/FileGlobs.py | ||
- coala_quickstart/info_extractors/EditorconfigInfoExtractor.py | ||
# https://github.com/coala/coala-quickstart/issues/222 | ||
- coala_quickstart/info_extractors/EditorconfigParsing.py | ||
- coala_quickstart/info_extractors/GemfileInfoExtractor.py | ||
- coala_quickstart/info_extractors/GruntfileInfoExtractor.py | ||
|
||
nocover_regexes: | ||
# coala_quickstart.py | ||
- args.green_mode | ||
# generation/InfoMapping.py | ||
# https://github.com/coala/coala-quickstart/issues/275 | ||
- INFO_SETTING_MAPS = | ||
# generation/Project.py | ||
# https://github.com/coala/coala-quickstart/issues/276 | ||
- def language_percentage | ||
# generation/Settings.py::write_coafile | ||
# https://github.com/coala/coala-quickstart/issues/277 | ||
- 'if os.path.isfile\(coafile\):' | ||
# generation/SettingsFilling.py | ||
# https://github.com/coala/coala-quickstart/issues/278 | ||
- def autofill_value | ||
- def is_autofill_possible | ||
- def require_setting | ||
# generation/Settings.py::get_extensions | ||
# https://github.com/coala/coala-quickstart/issues/279 | ||
- if ext in exts | ||
# generation/SettingsClass.py::fillup_optional_settings | ||
# https://github.com/coala/coala-quickstart/issues/280 | ||
- if inside_annot | ||
# generation/SettingsClass.py::BearSettings.__init__ | ||
- if hasattr.*generate_config | ||
# generation/Utilities.py | ||
# https://github.com/coala/coala-quickstart/issues/281 | ||
- def is_glob_exp | ||
- def get_gitignore_glob | ||
- def parse_gitignore_line | ||
- def get_language_from_hashbang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,89 @@ | ||
[bdist_wheel] | ||
python-tag = py34.py35.py36 | ||
|
||
[tool:pytest] | ||
norecursedirs = | ||
.git | ||
dist | ||
build | ||
venv | ||
.env | ||
minversion = 3.6.1 | ||
|
||
testpaths = | ||
coala_quickstart | ||
tests | ||
python_files = *.py | ||
timeout = 35 | ||
coala_quickstart | ||
tests | ||
|
||
python_files = *Test.py | ||
python_classes = *Test | ||
|
||
addopts = | ||
--color=yes | ||
--doctest-glob=*.rst | ||
--doctest-modules | ||
--cov=coala_quickstart | ||
-r s | ||
env = | ||
PYTHONHASHSEED=0 | ||
# PYTHONHASHSEED=0 is required to use same hashes in pytests-xdist's workers | ||
-r a | ||
-p no:logging | ||
--color=yes | ||
--doctest-glob=*.rst | ||
--doctest-modules | ||
--doctest-ignore-import-error | ||
--error-for-skips | ||
--cov | ||
--instafail | ||
--profile | ||
--reorder 'requirements.txt' 'test-requirements.txt' '*' | ||
|
||
doctest_optionflags = | ||
ELLIPSIS | ||
IGNORE_EXCEPTION_DETAIL | ||
|
||
reqsfilenamepatterns = | ||
requirements.txt | ||
test-requirements.txt | ||
|
||
reqsignorevcs = True | ||
|
||
timeout = 35 | ||
|
||
[coverage:coverage_env_plugin] | ||
markers = True | ||
|
||
[coverage:run] | ||
branch=True | ||
cover_pylib=False | ||
source = coala_quickstart | ||
branch = True | ||
cover_pylib = False | ||
|
||
plugins = | ||
coverage_env_plugin | ||
coverage_config_reload_plugin | ||
|
||
source = | ||
coala_quickstart | ||
|
||
omit = | ||
tests/* | ||
setup.py | ||
coala_quickstart/__init__.py | ||
coala_quickstart/generation/Bears.py | ||
coala_quickstart/generation/FileGlobs.py | ||
coala_quickstart/info_extractors/EditorconfigInfoExtractor.py | ||
coala_quickstart/info_extractors/EditorconfigParsing.py | ||
coala_quickstart/info_extractors/GemfileInfoExtractor.py | ||
coala_quickstart/info_extractors/GruntfileInfoExtractor.py | ||
|
||
[coverage:report] | ||
show_missing=True | ||
fail_under = 100 | ||
show_missing = True | ||
skip_covered = False | ||
sort = Miss | ||
exclude_lines = | ||
pragma: no ?cover | ||
pragma ${PLATFORM_SYSTEM}: no cover | ||
pragma ${OS_NAME}: no cover | ||
pragma Python [0-9.,]*${PYTHON_VERSION}[0-9.,]*: no cover | ||
args.green_mode | ||
INFO_SETTING_MAPS = | ||
def language_percentage | ||
if os.path.isfile\(coafile\): | ||
def autofill_value | ||
def is_autofill_possible | ||
def require_setting | ||
if ext in exts | ||
if inside_annot | ||
if hasattr.*generate_config | ||
def is_glob_exp | ||
def get_gitignore_glob | ||
def parse_gitignore_line | ||
def get_language_from_hashbang | ||
|
||
[coverage:force_end_of_section] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ;-)
That is only done on coala & coala-bears as we have lots of eyes on those two repos, and those two repos see enhancements first (like pytest-reqs is only working on coala core repo atm)
These other repos will not be maintained unless moban forces them to sync.