Skip to content

Commit

Permalink
Fix pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
boehmseb committed Aug 29, 2024
1 parent 3202244 commit d8201b8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions varats/varats/tools/research_tools/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import re
import typing as tp
from collections import defaultdict
from pathlib import Path

from varats.tools.research_tools.research_tool import CodeBase, SubProject
from varats.utils.settings import vara_cfg
Expand Down Expand Up @@ -35,18 +34,19 @@ def __quickfix_dev_branches(branch_name: str, sub_project: SubProject) -> str:
Test:
>>> import re
>>> fixed_branch_name = __quickfix_dev_branches(\
'vara-dev', SubProject(Path("/dev/null"), "vara-llvm-project", "", "", ""))
>>> from pathlib import Path
>>> fixed_branch_name = __quickfix_dev_branches('vara-dev', \
SubProject(Path("/dev/null"), "vara-llvm-project", "", "", ""))
>>> re.match(r'vara-\\d+-dev', fixed_branch_name) is not None
True
>>> fixed_branch_name = __quickfix_dev_branches(\
'vara', SubProject(Path("/dev/null"), "vara-llvm-project", "", "", ""))
>>> fixed_branch_name = __quickfix_dev_branches('vara', \
SubProject(Path("/dev/null"), "vara-llvm-project", "", "", ""))
>>> re.match(r'vara-\\d+', fixed_branch_name) is not None
True
>>> __quickfix_dev_branches(\
"f-FooBar", SubProject(Path("/dev/null"), "vara-llvm-project", "", "", ""))
>>> __quickfix_dev_branches("f-FooBar", \
SubProject(Path("/dev/null"), "vara-llvm-project", "", "", ""))
'f-FooBar'
>>> __quickfix_dev_branches(\
Expand Down

0 comments on commit d8201b8

Please sign in to comment.