Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Refactor live tests for speed

オープン
#213 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

tests/test_api.py、tests/test_resolution.py、tests/test_cli.py に記載されている最も遅いテストから始め、duration report をベースラインとして使用します。これらの live テストがどのように時間を費やしているかを確認し、意図された速度目標を明確にします。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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aboutcode-org/python-inspector のほかの issue

aboutcode-org/python-inspector の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。