formatting changes

This commit is contained in:
Jakub Trllo 2023-01-06 12:17:46 +01:00
parent 2ccf657c2a
commit 23817bdc4c
2 changed files with 4 additions and 2 deletions

View file

@ -409,7 +409,10 @@ class ProjectPushRepreItem:
filepath_template = file_info["path"].replace("\\", "/")
filepath = filepath_template.format(root=self._roots)
dirpath, basename = os.path.split(filepath_template)
if dirpath != src_dirpath or not src_basename_regex.match(basename):
if (
dirpath != src_dirpath
or not src_basename_regex.match(basename)
):
relative_dir = dirpath.replace(src_dirpath, "")
if relative_dir:
relative_path = "/".join([relative_dir, basename])

View file

@ -1,4 +1,3 @@
import re
import collections
from qtpy import QtWidgets, QtGui, QtCore