for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import os
from semantic_version import Version
semantic_version
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 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
def test_repository_parses_versions(git_repo_with_merge_commit):
v1 = Version('0.0.1')
v1
assert [v1] == repository.versions
assert v1 == repository.latest_version
def test_unreleased_version(git_repo):
assert 0 == len(repository.versions)
assert Version('0.0.0') == 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.