Skip to content

Commit

Permalink
Merge 34fad52 into c07a906
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nirali committed Jul 3, 2018
2 parents c07a906 + 34fad52 commit 3966d8f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.rst
Expand Up @@ -332,10 +332,23 @@ Run pylama from python code

from pylama.main import check_path, parse_options

my_redefined_options = {...}
# Use and/or modify 0 or more of the options defined as keys in the variable my_redefined_options below.
# To use defaults for any option, remove that key completely.
my_redefined_options = {
'linters': ['pep257', 'pydocstyle', 'pycodestyle', 'pyflakes' ...],
'ignore': ['D203', 'D213', 'D406', 'D407', 'D413' ...],
'select': ['R1705' ...],
'sort': 'F,E,W,C,D,...',
'skip': '*__init__.py,*/test/*.py,...',
'async': True,
'force': True
...
}
# relative path of the directory in which pylama should check
my_path = '...'

options = parse_options([my_path], **my_redefined_options)
errors = check_path(options)
errors = check_path(options, rootdir='.')


.. _bagtracker:
Expand Down

0 comments on commit 3966d8f

Please sign in to comment.