update trunk + fix tests

This commit is contained in:
Georges-Antoine Assi
2024-08-11 22:43:44 -04:00
parent 1ea1b326d3
commit ce99ce4c62
2 changed files with 14 additions and 13 deletions

View File

@@ -19,24 +19,24 @@ runtimes:
lint:
enabled:
- markdownlint@0.41.0
- eslint@9.7.0
- eslint@9.8.0
- actionlint@1.7.1
- bandit@1.7.9
- black@24.4.2
- checkov@3.2.208
- black@24.8.0
- checkov@3.2.219
- git-diff-check
- isort@5.13.2
- mypy@1.11.0
- osv-scanner@1.8.2
- mypy@1.11.1
- osv-scanner@1.8.3
- oxipng@9.1.2
- prettier@3.3.3
- ruff@0.5.5
- ruff@0.5.7
- shellcheck@0.10.0
- shfmt@3.6.0
- svgo@3.3.2
- taplo@0.9.2
- trivy@0.53.0
- trufflehog@3.80.1
- taplo@0.9.3
- trivy@0.54.1
- trufflehog@3.81.7
- yamllint@1.35.1
ignore:
- linters: [ALL]

View File

@@ -8,7 +8,7 @@ Create Date: 2024-08-11 21:50:53.301352
import sqlalchemy as sa
from alembic import op
from config import SCAN_TIMEOUT
from config import IS_PYTEST_RUN, SCAN_TIMEOUT
from endpoints.sockets.scan import scan_platforms
from handler.redis_handler import high_prio_queue
from handler.scan_handler import ScanType
@@ -29,9 +29,10 @@ def upgrade() -> None:
)
# Run a no-scan in the background on startup
high_prio_queue.enqueue(
scan_platforms, [], ScanType.HASH_SCAN, [], [], job_timeout=SCAN_TIMEOUT
)
if not IS_PYTEST_RUN:
high_prio_queue.enqueue(
scan_platforms, [], ScanType.HASH_SCAN, [], [], job_timeout=SCAN_TIMEOUT
)
def downgrade() -> None: