'Counting skipped lines - pylint
I've got a task to lint my code before deployment:
@task
def lint(ctx, save_output=False):
"""Run pylint"""
save_cmd = ' --output-format=parseable > pylint.txt' if save_output else ''
cmd = f'pylint -j 4 --rcfile=pylintrc --reports=n {packages} {save_cmd}'
print("checking pylint...")
ctx.run(cmd)
print("pylint ... ok")
Is there any way to count how many lines skipped in file while linting? Or use python abilities to count that lines by regex?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
