Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Refactor live tests for speed

未關閉
#213 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
重構
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
python

研究方向

從 tests/test_api.py、tests/test_resolution.py 和 tests/test_cli.py 中列出的最慢測試開始,以 duration report 作為基準。檢視這些 live tests 如何耗用時間,並釐清預期的速度目標;done 應表示測試速度更快,同時不失去其現有行為。

由索引模型根據 Issue 內容生成。

描述

=========================================================================== slowest 20 durations ============================================================================
31.38s call     tests/test_api.py::test_api_with_requirement_file
22.70s call     tests/test_resolution.py::test_without_supported_wheels
16.58s call     tests/test_cli.py::test_pdt_output_with_frozen_requirements
13.41s call     tests/test_cli.py::test_pdt_output_with_pinned_requirements
12.69s call     tests/test_resolution.py::test_get_resolved_dependencies_with_flask_and_python_36
8.87s call     tests/test_cli.py::test_cli_with_azure_devops_with_python_313
8.73s call     tests/test_cli.py::test_cli_with_single_index_url_except_pypi_simple
8.09s call     tests/test_resolution.py::test_get_resolved_dependencies_with_flask_and_python_310
7.98s call     tests/test_resolution.py::test_get_resolved_dependencies_with_flask_and_python_310_windows
7.56s call     tests/test_cli.py::test_cli_with_azure_devops_with_python_310
7.29s call     tests/test_cli.py::test_cli_with_azure_devops_with_python_38
6.34s call     tests/test_cli.py::test_cli_with_pinned_requirements_file
3.54s call     tests/test_cli.py::test_cli_with_requirements_and_ignore_errors
2.83s call     tests/test_cli.py::test_cli_with_environment_marker_and_complex_ranges
2.83s call     tests/test_api.py::test_api_with_prefer_source
2.74s call     tests/test_api.py::test_api_with_specifier_pdt
2.73s call     tests/test_api.py::test_api_with_specifier
2.64s call     tests/test_api.py::test_api_with_python_311
2.62s call     tests/test_api.py::test_api_with_recursive_requirement_file
2.28s call     tests/test_resolution.py::test_get_resolved_dependencies_with_tilde_requirement_using_json_api

... we can do better!

主要語言
Python
星號
23
分支
29
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

aboutcode-org/python-inspector 的其他 Issue

查看 aboutcode-org/python-inspector 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。