forked from AFPy/potodo
regex: allows for a mix of words and periods between the FOLDER and the .po. I assume we use semver ? (#124)
This commit is contained in:
parent
a232164004
commit
7efa7a0fbc
|
@ -7,7 +7,7 @@ repos:
|
||||||
rev: stable
|
rev: stable
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
language_version: python3.7
|
language_version: python3
|
||||||
- repo: https://github.com/asottile/reorder_python_imports
|
- repo: https://github.com/asottile/reorder_python_imports
|
||||||
rev: v1.9.0
|
rev: v1.9.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
__author__ = """Jules Lasne"""
|
__author__ = """Jules Lasne"""
|
||||||
__email__ = "jules.lasne@gmail.com"
|
__email__ = "jules.lasne@gmail.com"
|
||||||
__version__ = "0.21.1"
|
__version__ = "0.21.2"
|
||||||
|
|
|
@ -77,7 +77,7 @@ def _get_reservation_list(repo_path: Path) -> Dict[str, Tuple[Any, Any]]:
|
||||||
|
|
||||||
for issue in issues:
|
for issue in issues:
|
||||||
# Maybe find a better way for not using python 3.8 ?
|
# Maybe find a better way for not using python 3.8 ?
|
||||||
yes = re.search(r"\w*/\w*\.po", issue["title"])
|
yes = re.search(r"\w*/(\w|\.)*\.po", issue["title"])
|
||||||
if yes:
|
if yes:
|
||||||
creation_date = datetime.strptime(
|
creation_date = datetime.strptime(
|
||||||
issue["created_at"].split("T")[0], "%Y-%m-%d"
|
issue["created_at"].split("T")[0], "%Y-%m-%d"
|
||||||
|
|
Loading…
Reference in New Issue