Conditions | 3 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import re |
||
31 | def merged_pull_requests(): |
||
32 | commit_history = git( |
||
33 | 'log --oneline --no-merges --no-color'.split(' ') |
||
34 | ).split('\n') |
||
35 | |||
36 | pull_requests = [] |
||
37 | |||
38 | for index, commit_msg in enumerate(commit_history): |
||
39 | matches = re.compile( |
||
40 | r'^([0-9a-f]{5,40}) Merge pull request #(\w+)', |
||
41 | ).findall(commit_msg) |
||
42 | if matches: |
||
43 | committish, pr_number = matches[0] |
||
44 | pull_requests.append(PullRequest(pr_number, committish)) |
||
45 | |||
46 | return pull_requests |
||
47 | |||
82 |
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.