for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import pytest
from __future__ import absolute_import
import os
from glob import glob
@pytest.fixture()
def remove_generated_reports_in_root():
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.
yield
path = os.getcwd()
pattern = os.path.join(
path, "graph-of-xccdf_org.ssgproject.content_rule_package_abrt_removed*")
This check looks for lines that are too long. You can specify the maximum line length.
for item in glob(pattern):
if not os.path.isdir(item):
os.remove(item)