for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import os
import click
click
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 ..models import GitRepository
def _echo(message, **kwargs):
click.echo(click.style(
message,
**kwargs
))
def info(message):
_echo(
fg='green',
bold=True
)
def note(message):
fg='blue',
def init():
"""
Detects, prompts and initialises the project.
info('Indexing repository...')
repository = GitRepository()
info('Looking for github auth token in the environment...')
auth_token = os.environ.get('GITHUB_AUTH_TOKEN')
if not auth_token:
info('No auth token found, asking for it...')
note('You need a GitHub token for changes to create a release.')
click.pause('Press [enter] to launch the GitHub "New personal access '
'token" page, to create a token for changes.')
click.launch('https://github.com/settings/tokens/new')
auth_token = click.prompt('Enter your changes token')
repository.auth_token = auth_token
info('Fetching pull requests...')
return repository
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.