mirror of
https://github.com/BoPeng/ai-marketplace-monitor.git
synced 2025-12-23 22:28:18 -05:00
remove more poetry stuf
This commit is contained in:
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@@ -91,9 +91,8 @@ jobs:
|
||||
# - name: Install system deps
|
||||
# shell: bash
|
||||
# run: |
|
||||
# pip install nox-poetry==1.1.0
|
||||
# pip install poetry==1.8.5
|
||||
# poetry config virtualenvs.in-project true
|
||||
# pip install nox==1.1.0
|
||||
# pip install uv==1.8.5
|
||||
|
||||
# - name: Download coverage data
|
||||
# uses: actions/download-artifact@v4.1.8
|
||||
|
||||
@@ -35,8 +35,8 @@ repos:
|
||||
rev: 5295f87c0e261da61a7b919fc754e3a77edd98a7
|
||||
hooks:
|
||||
- id: validate-cff
|
||||
- repo: https://github.com/python-poetry/poetry
|
||||
rev: 1.8.3
|
||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||
# uv version.
|
||||
rev: 0.7.19
|
||||
hooks:
|
||||
- id: poetry-check
|
||||
- id: poetry-install
|
||||
- id: uv-lock
|
||||
|
||||
2963
poetry.lock
generated
2963
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -35,6 +35,8 @@ dependencies = [
|
||||
"requests>=2.30.0",
|
||||
"CurrencyConverter>=0.18.0",
|
||||
"tomli==2.2.1; python_version < '3.11'",
|
||||
"safety>=3.5.2",
|
||||
"pip-audit>=2.9.0",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
@@ -52,6 +54,7 @@ dev = [
|
||||
"invoke>=2.2.0",
|
||||
"bump2version>=1.0.1",
|
||||
"watchdog[watchmedo]>=6.0.0",
|
||||
"pip-audit>=2.9.0",
|
||||
]
|
||||
test = [
|
||||
"pytest>=8.3.3",
|
||||
@@ -176,7 +179,7 @@ include_trailing_comma = true
|
||||
force_grid_wrap = 0
|
||||
use_parentheses = true
|
||||
line_length = 99
|
||||
known_third_party = ["invoke", "nox", "nox_poetry"]
|
||||
known_third_party = ["invoke", "nox"]
|
||||
|
||||
[tool.black]
|
||||
line-length = 99
|
||||
@@ -187,7 +190,7 @@ warn_return_any = false
|
||||
warn_unused_configs = true
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = ["pytest.*", "invoke.*", "nox.*", "nox_poetry.*"]
|
||||
module = ["pytest.*", "invoke.*", "nox.*"]
|
||||
allow_redefinition = false
|
||||
check_untyped_defs = true
|
||||
ignore_errors = false
|
||||
|
||||
23
tasks.py
23
tasks.py
@@ -2,8 +2,9 @@
|
||||
|
||||
Execute 'invoke --list' for guidance on using Invoke
|
||||
"""
|
||||
|
||||
import os
|
||||
import platform
|
||||
import tempfile
|
||||
import webbrowser
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
@@ -103,15 +104,23 @@ def ruff(c: Context) -> None:
|
||||
@task()
|
||||
def security(c: Context) -> None:
|
||||
"""Run security related checks."""
|
||||
# _run(
|
||||
# c,
|
||||
# "poetry export --with dev --format=requirements.txt --without-hashes | "
|
||||
# "poetry run safety check --stdin --full-report",
|
||||
# )
|
||||
with tempfile.NamedTemporaryFile(mode='w', suffix='.txt', delete=False) as f:
|
||||
temp_file = f.name
|
||||
try:
|
||||
_run(
|
||||
c,
|
||||
f"uv export --extra dev --format requirements-txt --no-hashes > {temp_file}")
|
||||
_run(c,
|
||||
f"uv run pip-audit --requirement {temp_file} --format json",
|
||||
)
|
||||
finally:
|
||||
# Clean up
|
||||
if os.path.exists(temp_file):
|
||||
os.unlink(temp_file)
|
||||
return None
|
||||
|
||||
|
||||
@task(pre=[ruff, security, call(format_, check=True)])
|
||||
@task(pre=[ruff, call(format_, check=True)])
|
||||
def lint(c: Context) -> None:
|
||||
"""Run all linting."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user