class documentation
class PackageToLint: (source)
Represents data about a package to be tested during primer tests.
Method | __init__ |
Undocumented |
Method | lazy |
Concatenates the target directory and clones the file. |
Instance Variable | branch |
Branch of the repository to clone. |
Instance Variable | commit |
Commit hash to pin the repository on. |
Instance Variable | directories |
Directories within the repository to run pylint over. |
Instance Variable | minimum |
Minimum python version supported by the package. |
Instance Variable | pylint |
Arguments to give to pylint. |
Instance Variable | pylintrc |
Path relative to project's main directory to the pylintrc if it exists. |
Instance Variable | url |
URL of the repository to clone. |
Property | clone |
Directory to clone repository into. |
Property | paths |
The paths we need to lint. |
Property | pylint |
Undocumented |
Property | pylintrc |
Undocumented |
Method | _clone |
Undocumented |
Method | _pull |
Undocumented |
def __init__(self, url:
str
, branch: str
, directories: list[ str]
, commit: str|None
= None, pylint_additional_args: list[ str]|None
= None, pylintrc_relpath: str|None
= None, minimum_python: str|None
= None):
(source)
¶
Undocumented
Concatenates the target directory and clones the file. Not expected to be tested as the primer won't work if it doesn't. It's tested in the continuous integration primers, only the coverage is not calculated on everything. If lazy clone breaks for local use we'll probably notice because we'll have a fatal when launching the primer locally.