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

Improve methods order

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

まず SDK クラスとそのメソッドの現在の順序を一覧化し、次に単体テストのメソッドを調べて実装を反映しているかどうかを確認します。何かを変更する前に、想定されるユースケースとワークフローについて committers と話し合います。SDK メソッドが6部構成の順序規約に従い、単体テストが任意でそれに合わせて並べ替えられていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue

Description

The methods of a class should follow an ordering convention. Currently, all the methods are placed by either their usecase or just randomly in the class. The initial order was first mentioned in this comment, and after a discussion with @christoph-hamm, we decided this should be the final order:

  1. Class-level attributes
  2. Constructor (__init__)
  3. Alternative constructors (usually some class methods)
  4. Magic methods like __str__, __len__, __del__ etc.
  5. Property methods
  6. The rest of the methods (public, private, static, class which are not ctor) (mixed together, following the "caller before the callee" rule)

The order should also be added to the DEVELOPMENT.md file, so that it's clear for future development of the SDK.

Goals

The code is refactored and the methods are in a proper order.

Final result

Summary

To be filled when the final solution is sketched.

Tasks
  • Reorder the methods in the sdk
  • Optional: Reorder the unit test methods to match the implementation
主要言語
Python
スター
9
フォーク
5
平均マージ
1日 9時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-ankaios/ank-sdk-python のほかの issue

eclipse-ankaios/ank-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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