Skip to content

Commit 311f0d2

Browse files
committed
pin package versions, use absolute path, fix formatting/linting
1 parent d00cb9f commit 311f0d2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

homcc/client/compilation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ def find_dependencies(arguments: Arguments) -> Set[str]:
259259
def extract_dependencies(line: str) -> List[str]:
260260
split: List[str] = line.split(":") # remove preprocessor output targets specified via -MT
261261
dependency_line: str = split[1] if len(split) == 2 else split[0] # e.g. ignore "foo.o bar.o:"
262-
return [dependency for dependency in dependency_line.rstrip("\\").split()] # remove line break char "\"
262+
return list(dependency_line.rstrip("\\").split()) # remove line break char "\"
263263

264264
# extract dependencies from the preprocessor result and filter for sendability
265265
return {
266-
dependency
266+
str(Path(dependency).absolute())
267267
for line in dependency_result.splitlines()
268268
for dependency in extract_dependencies(line)
269269
if not dependency.startswith(EXCLUDED_DEPENDENCY_PREFIXES) # check sendability

homcc/server/cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def _evict_oldest(self):
6363
oldest_path.unlink(missing_ok=False)
6464
except FileNotFoundError:
6565
logger.error(
66-
"""Tried to evict cache entry with hash '%s', but corresponding cache file at '%s' did not exist.
67-
This may lead to an invalid cache size calculation.""",
66+
"""Tried to evict cache entry with hash '%s', but corresponding cache file at '%s' did not exist.
67+
This may lead to an invalid cache size calculation.""",
6868
oldest_hash,
6969
oldest_path,
7070
)

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ python-lzo==1.12 # see https://packages.ubuntu.com/jammy/python3-lzo
22
sysv_ipc==1.0.0 # see https://packages.ubuntu.com/jammy/python3-sysv-ipc
33

44
# test, CI, package, formatting, linting, ...
5-
black
5+
black==22.6.0
66
isort[colors]
77
mypy==0.990
8-
pylint
8+
pylint=2.14.4
99
PySide2~=5.15
1010
pytest
1111
pytest-asyncio

0 commit comments

Comments
 (0)