for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from plumbum.cmd import git
plumbum.cmd
This can be caused by one of the following:
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
# .scrutinizer.yml before_commands: - sudo pip install abc # Python2 - sudo pip3 install abc # Python3
This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.
__init__.py
from semantic_version import Version
semantic_version
from changes import models
def test_repository_parses_remote_url(git_repo):
test_repository_parses_remote_url
[a-z_][a-z0-9_]{2,30}$
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
repository = models.GitRepository()
assert 'test_app' == repository.repo
assert 'michaeljoseph' == repository.owner
assert repository.is_github
assert repository.platform == 'github'
def test_repository_parses_versions(git_repo):
v1 = Version('0.0.1')
v1
assert [v1] == repository.versions
assert v1 == repository.latest_version
# FIXME
# def test_latest_version_unreleased(git_repo):
# repository = models.GitRepository()
#
# assert 0 == len(repository.versions)
# assert models.GitRepository.VERSION_ZERO == repository.latest_version
def test_latest_version(git_repo):
git('tag', '0.0.2')
git('tag', '0.0.3')
expected_versions = [
Version('0.0.1'),
Version('0.0.2'),
Version('0.0.3'),
]
assert expected_versions == repository.versions
assert Version('0.0.3') == repository.latest_version
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.