Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Fusilier <[email protected]>
  • Loading branch information
Sebastien Fusilier committed Mar 3, 2023
1 parent edaaa0b commit 90db721
Show file tree
Hide file tree
Showing 12 changed files with 946 additions and 798 deletions.
2 changes: 1 addition & 1 deletion .pylintrc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ min-public-methods = 2

[tool.pylint.exceptions]
# Exceptions that will emit a warning when caught.
overgeneral-exceptions = ["BaseException", "Exception"]
overgeneral-exceptions = ["builtins.BaseException", "builtins.Exception"]

[tool.pylint.format]
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.9
3.10.10
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ MODULE:=git_cdn config.py
PYTHON?=python3
PIP:=$(PYTHON) -m pip
POETRY?=$(PYTHON) -m poetry
PIP_VERSION:="==22.3.1"
POETRY_VERSION:="==1.3.1"
PIP_VERSION:="==23.0.1"
POETRY_VERSION:="==1.4.0"

# poetry enforce semver PEP 440 https://www.python.org/dev/peps/pep-0440/#local-version-identifiers
# So convert v1.7.1-55-af3454 to v1.7.1+55.af3454
Expand Down
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
# when the child process is already finished, so using FastChildWatcher to ignore this issue
asyncio.set_child_watcher(asyncio.FastChildWatcher())


# Add logs when workers are killed
def worker_int(worker):
log.error("worker received INT or QUIT signal")
Expand Down
1 change: 1 addition & 0 deletions git_cdn/cache_handler/clean_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
except PackageNotFoundError:
GITCDN_VERSION = "unknown"


# pylint: disable=duplicate-code
def before_send(event, hint):
if "log_record" in hint:
Expand Down
8 changes: 4 additions & 4 deletions git_cdn/git_cdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,10 @@ def stats(self, response: Union[Exception, web.Response] = None):
# pylint: enable = protected-access
if not output_size:
output_size = response.content_length
response_stats = dict(
response_size=output_size,
response_status=getattr(response, "status", 500),
)
response_stats = {
"response_size": output_size,
"response_status": getattr(response, "status", 500),
}
if isinstance(response, BaseException):
e = response
response_stats["exception"] = "".join(
Expand Down
1 change: 0 additions & 1 deletion git_cdn/lock/aio_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def acquire(self, mode):
return f

def _acquired(self, mode):

if mode == fcntl.LOCK_EX:
self.state = S.ACQUIRED_EX
else:
Expand Down
3 changes: 2 additions & 1 deletion git_cdn/pack_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ async def send_pack(self, writer):
log.error("Exiting on unfinished pack cache read")
raise
finally:
bind_contextvars(complete_send_pack=(self.size() == count))
is_complete = self.size() == count
bind_contextvars(complete_send_pack=is_complete)

# update mtime for LRU
os.utime(self.filename, None)
Expand Down
1 change: 0 additions & 1 deletion git_cdn/repo_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@


async def exec_git(*args):

return await asyncio.create_subprocess_exec(
"git",
*args,
Expand Down
2 changes: 1 addition & 1 deletion git_cdn/tests/test_lfs_cache_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from git_cdn.lfs_cache_manager import LFSCacheFile
from git_cdn.lfs_cache_manager import LFSCacheManager

# pylint: disable=unused-argument,protected-access,redefined-outer-name
# pylint: disable=unused-argument,protected-access,redefined-outer-name,broad-exception-raised


@pytest_asyncio.fixture
Expand Down
2 changes: 1 addition & 1 deletion git_cdn/tests/test_upload_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from git_cdn.upload_pack_input_parser_v2 import UploadPackInputParserV2
from git_cdn.util import generate_url

# pylint: disable=unused-argument, consider-using-f-string
# pylint: disable=unused-argument,consider-using-f-string,protected-access

CLONE_INPUT = (
b"""0098want 4284b1521b200ba4934ee710a4a538549f1f0f97 multi_ack_detailed no-done """
Expand Down
1,717 changes: 932 additions & 785 deletions poetry.lock

Large diffs are not rendered by default.

0 comments on commit 90db721

Please sign in to comment.