Skip to content

Commit

Permalink
Update python dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Dec 18, 2024
1 parent a316eb0 commit 4307a9f
Show file tree
Hide file tree
Showing 5 changed files with 277 additions and 292 deletions.
7 changes: 4 additions & 3 deletions bin/check-pinned-requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ def extract_pinned(requirements_file):
pinned_deps = {}
with open(requirements_file) as file:
for line in file:
line = line.strip().lower()
# Skip comments and empty lines
if line.strip() and not line.startswith("#"):
if line and not line.startswith("#"):
# Match lines with version constraints (pinned dependencies) using non-capturing groups for the operator
pinned_match = re.match(r"^(\S+)(?:==|>=)(\S+)", line.strip())
pinned_match = re.match(r"^(\S+)(?:==|>=)(\S+)", line)
if pinned_match:
pkg_name = pinned_match.group(1)
version = pinned_match.group(2)
Expand All @@ -36,7 +37,7 @@ def get_outdated_packages():
if line:
parts = line.split()
if len(parts) >= 3:
package_name = parts[0]
package_name = parts[0].lower()
latest_version = parts[2]
outdated[package_name] = latest_version
return raw, outdated
Expand Down
4 changes: 2 additions & 2 deletions requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pytest-django==4.9.0
pytest-mock==3.14.0
pytest==8.3.4
requests-mock==1.12.1
ruff==0.8.2
ruff==0.8.3
urlwait==1.0
uv==0.5.8
uv==0.5.10
watchfiles==1.0.3 # required for `granian --reload`
Loading

0 comments on commit 4307a9f

Please sign in to comment.