Repository navigation
fix(many): issues reported from deepsource #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 21 commits
9cc6ce3
7a2b4f6
d10ab4b
e148e73
f497339
6351ecf
1104bf0
089a9bf
82d89fa
f431039
ce38545
535e7f2
e0f7451
9351a20
62ac7de
4f6ecd8
b172e5e
adca9ae
adb589d
e97d2bd
108a335
47962de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| * | ||
| !configs | ||
| !configs/** | ||
| !hooks | ||
| !hooks/** | ||
| !qlty.toml | ||
| !.gitignore |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ignored: | ||
| - DL3008 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| source-path=SCRIPTDIR |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| # This file was automatically generated by `qlty init`. | ||
| # You can modify it to suit your needs. | ||
| # We recommend you to commit this file to your repository. | ||
| # | ||
| # This configuration is used by both Qlty CLI and Qlty Cloud. | ||
| # | ||
| # Qlty CLI -- Code quality toolkit for developers | ||
| # Qlty Cloud -- Fully automated Code Health Platform | ||
| # | ||
| # Try Qlty Cloud: https://qlty.sh | ||
| # | ||
| # For a guide to configuration, visit https://qlty.sh/d/config | ||
| # Or for a full reference, visit https://qlty.sh/d/qlty-toml | ||
| config_version = "0" | ||
|
|
||
| exclude_patterns = [ | ||
| "*_min.*", | ||
| "*-min.*", | ||
| "*.min.*", | ||
| "**/.yarn/**", | ||
| "**/*.d.ts", | ||
| "**/assets/**", | ||
| "**/bower_components/**", | ||
| "**/build/**", | ||
| "**/cache/**", | ||
| "**/config/**", | ||
| "**/db/**", | ||
| "**/deps/**", | ||
| "**/dist/**", | ||
| "**/extern/**", | ||
| "**/external/**", | ||
| "**/generated/**", | ||
| "**/Godeps/**", | ||
| "**/gradlew/**", | ||
| "**/mvnw/**", | ||
| "**/node_modules/**", | ||
| "**/protos/**", | ||
| "**/seed/**", | ||
| "**/target/**", | ||
| "**/templates/**", | ||
| "**/testdata/**", | ||
| "**/vendor/**", | ||
| ] | ||
|
|
||
| test_patterns = [ | ||
| "**/test/**", | ||
| "**/spec/**", | ||
| "**/*.test.*", | ||
| "**/*.spec.*", | ||
| "**/*_test.*", | ||
| "**/*_spec.*", | ||
| "**/test_*.*", | ||
| "**/spec_*.*", | ||
| ] | ||
|
|
||
| [smells] | ||
| mode = "comment" | ||
|
|
||
| [[source]] | ||
| name = "default" | ||
| default = true | ||
|
|
||
|
|
||
| [[plugin]] | ||
| name = "actionlint" | ||
|
|
||
| [[plugin]] | ||
| name = "bandit" | ||
|
|
||
| [[plugin]] | ||
| name = "hadolint" | ||
|
|
||
| [[plugin]] | ||
| name = "osv-scanner" | ||
|
|
||
| [[plugin]] | ||
| name = "radarlint-iac" | ||
| mode = "monitor" | ||
|
|
||
| [[plugin]] | ||
| name = "radarlint-python" | ||
| mode = "comment" | ||
|
|
||
| [[plugin]] | ||
| name = "ripgrep" | ||
| mode = "comment" | ||
|
|
||
| [[plugin]] | ||
| name = "ruff" | ||
| drivers = [ | ||
| "lint", | ||
| ] | ||
|
|
||
| [[plugin]] | ||
| name = "shellcheck" | ||
|
|
||
| [[plugin]] | ||
| name = "trivy" | ||
| drivers = [ | ||
| "config", | ||
| "fs-vuln", | ||
| ] | ||
|
|
||
| [[plugin]] | ||
| name = "trufflehog" | ||
|
|
||
| [[plugin]] | ||
| name = "zizmor" |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,11 +8,11 @@ PIP_EXTRAS_OPTIONAL=rfdiffusion_cpu,esm2 | |||||||||
|
|
||||||||||
|
|
||||||||||
| TESTDIR=tmp-test-dir-with-unique-name | ||||||||||
| PYTEST_ARGS=--cov-config=../.coveragerc --cov-report=term-missing --cov=$(PROJECT) -v --pyargs --durations=0 -vv --emoji | ||||||||||
| PYTEST_ARGS=--cov-config=../.coveragerc --cov-report= --cov=$(PROJECT) -v --pyargs --durations-min=5 -vv --emoji | ||||||||||
| PYTEST_CASES_PATH=../tests | ||||||||||
| PYTEST_XDIST_ARGS=-n 4 -m "not serial" | ||||||||||
| PYTEST_NON_DIST_SERIAL_ARGS=-m "serial and not very_slow" --cov-append | ||||||||||
| PYTEST_NON_DIST_SLOW_SERIAL_ARGS=-m "serial and very_slow" --cov-append | ||||||||||
| PYTEST_NON_DIST_SERIAL_ARGS=-m "(serial and not very_slow) or bootstrap" --cov-append | ||||||||||
| PYTEST_NON_DIST_SLOW_SERIAL_ARGS=-m "(serial and very_slow) or bootstrap" --cov-append | ||||||||||
|
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Find all test files and search for bootstrap marker usage
rg "@pytest\.mark\.bootstrap" --type py -A 2Repository: YaoYinYing/REvoDesign Length of output: 918 🏁 Script executed: #!/bin/bash
# Find all test files and search for very_slow marker usage
rg "@pytest\.mark\.very_slow" --type pyRepository: YaoYinYing/REvoDesign Length of output: 121 🏁 Script executed: #!/bin/bash
# Check for tests marked with both bootstrap and very_slow
rg -B 5 "@pytest\.mark\.bootstrap" --type py | rg -A 5 "@pytest\.mark\.very_slow"Repository: YaoYinYing/REvoDesign Length of output: 47 🏁 Script executed: #!/bin/bash
# Check the full Makefile context to understand how these variables are used
cat -n Makefile | head -30Repository: YaoYinYing/REvoDesign Length of output: 1693 Bootstrap tests execute twice across serial stages. The 3 bootstrap tests in the codebase ( Example fix (single execution by slow/fast bucket)-PYTEST_NON_DIST_SERIAL_ARGS=-m "(serial and not very_slow) or bootstrap" --cov-append
-PYTEST_NON_DIST_SLOW_SERIAL_ARGS=-m "(serial and very_slow) or bootstrap" --cov-append
+PYTEST_NON_DIST_SERIAL_ARGS=-m "(serial and not very_slow) or (bootstrap and not very_slow)" --cov-append
+PYTEST_NON_DIST_SLOW_SERIAL_ARGS=-m "(serial and very_slow) or (bootstrap and very_slow)" --cov-append📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| # default keyword test keyword for all tests | ||||||||||
| PYTEST_KW=all | ||||||||||
|
|
@@ -120,7 +120,7 @@ translate: | |||||||||
| stage=release bash tools/translate.sh | ||||||||||
|
|
||||||||||
| prepare-test: | ||||||||||
| python -m pip install pytest pytest-cov pytest-order coverage -q --no-cache-dir | ||||||||||
| python -m pip install pytest pytest-cov pytest-order pytest-dependency coverage -q --no-cache-dir | ||||||||||
| python -m pip install "celery[redis]==5.3.4" docker==7.1.0 Flask==3.1.3 Flask-HTTPAuth==4.8.0 SQLAlchemy==2.0.46 -q --no-cache-dir | ||||||||||
|
|
||||||||||
| # unit test | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: YaoYinYing/REvoDesign
Length of output: 227
🏁 Script executed:
# Also check the current hadolint configuration cat .qlty/configs/.hadolint.yamlRepository: YaoYinYing/REvoDesign
Length of output: 84
🏁 Script executed:
Repository: YaoYinYing/REvoDesign
Length of output: 95
🏁 Script executed:
Repository: YaoYinYing/REvoDesign
Length of output: 555
🏁 Script executed:
# Check the full Dockerfile to understand its purpose wc -l ./server/docker/server/Dockerfile head -30 ./server/docker/server/DockerfileRepository: YaoYinYing/REvoDesign
Length of output: 912
🏁 Script executed:
# Check the runner Dockerfile to see why it has no apt-get head -30 ./server/docker/runner/DockerfileRepository: YaoYinYing/REvoDesign
Length of output: 1092
Avoid disabling DL3008 globally; prefer targeted ignores.
The global DL3008 disable suppresses version-pinning enforcement for the unversioned apt packages in ./server/docker/server/Dockerfile (line 21:
build-essential curl procps). This reduces reproducibility and supply-chain hygiene. Either pin versions for these packages or use an inline# hadolint ignore=DL3008comment if pinning is infeasible.🧩 Suggested change (re‑enable DL3008)
📝 Committable suggestion
🤖 Prompt for AI Agents