E501: URLs not allowed in first line of assigned multiline strings
まだ誰も着手していません。
評価
調査の方向性
pycodestyle の単一の Python ファイルにある E501 の実装から始め、issue で割り当てられた multiline-string の例を再現します。通常の docstring とその扱いを比較し、その後、途切れのない長い URL の期待される扱いがカバーされ、サンプルコマンドが意図した結果を報告するように、焦点を絞ったカバレッジを追加または更新します。
索引モデルが issue の本文から書いたものです。
説明
New in pycodestyle 2.4, a long-unbroken-string (e.g. URL) in the first line of a multiline string is now an error.
I suspect it is due to https://github.com/PyCQA/pycodestyle/pull/630 , as the most likely candidate due to it touching E501.
v = """http://www.thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com/
http://www.thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com/
"""
$ pycodestyle longlines.py
longlines.py:1:80: E501 line too long (86 > 79 characters)
Oddly, it has to be assigned, i.e. not a conventional docstring.
- 主要言語
- Python
- スター
- 5.2k
- フォーク
- 760
- 平均マージ
- 5時間 56分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PyCQA/pycodestyle のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
PyCQA/pycodestyle#1294 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
PyCQA/pycodestyle#1302 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
PyCQA/pycodestyle#1242 · コメント 2 件 ·
-
Spurious E231 for nested format substitutions再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
PyCQA/pycodestyle#1241 · コメント 2 件 · リアクション 4 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
PyCQA/pycodestyle#1217 ·
PyCQA/pycodestyle の issue をすべて見る
似ている issue
-
`burr` fails to start when the Python path has a space in it対応中かも @enekoreto が今日担当しました。 オープンstatus/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 5 日以内に返信
-
gemini 出现了新的域名需要加入オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 2/5 半日 初心者へのやさしさ 72/100
debpalash/VoiceStudio#2903 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dagster-io/community-integrations#367 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
aws-samples/sample-per-model-bedrock#243 ·
メンテナーはふだん 1 日以内に返信