Skip to content
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

Fix #194 インデントの設定をテンプレートファイルに反映する #195

Closed
wants to merge 3 commits into from

Conversation

yatra9
Copy link

@yatra9 yatra9 commented May 7, 2020

Fix #194

インデントの設定によって、テンプレートファイルのインデントを修正するようにしました。

@kyuridenamida
Copy link
Owner

#193と一緒にレビューやります

# Successfully estimated the indents of template
if 'indent' in kwargs:
indent = kwargs['indent']
else :
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: elseの後にスペース

https://github.com/kyuridenamida/atcoder-tools/blob/stable/.travis.yml

多分ここにあるpythonのフォーマッターかけると一網打尽です!

  - flake8 --ignore=E501,W503,W605 --exclude=atcodertools/tools/templates/,tests/resources/test_codegen/ atcodertools tests
  - autopep8 -r . --exclude 'default_template.py,test_codegen' --diff | tee check_autopep8

@@ -58,3 +81,15 @@ def old_render(template, **kwargs):
def render_by_jinja(template, **kwargs):
return Environment(trim_blocks=True,
lstrip_blocks=True).from_string(template).render(**kwargs) + "\n"

def estimate_indent(code):
Copy link
Owner

@kyuridenamida kyuridenamida May 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このへんのロジック、テスト追加してもらえるとどういうケースでどういう挙動が期待されるのか分かって嬉しいです

参考:

nosetests tests --exe -v --with-coverage --cover-package=atcodertools

Copy link
Owner

@kyuridenamida kyuridenamida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

contributionありがとうございます。テストの追加とフォーマッターの適用後はマージできるかと思います。よろしくお願いします。

@kyuridenamida
Copy link
Owner

だいぶお返事が遅くなりました。色々整備してようやくメンテ再開できそうです。

大変申し訳無いのですが。masterが今かなりoutdatedな状態になっていて、もしまだコントリビュートしていただける気持ちがありましたらstable branchに対してPRを作り直してもらえたりしませんか?

もしくは言っていただければこちらで差分頑張って作ってマージしますが僕のマージリクエストになってしまいます。

@chaemon chaemon mentioned this pull request Jun 30, 2021
@kyuridenamida
Copy link
Owner

kyuridenamida commented Jun 8, 2024

最後のコミュニケーションからだいぶ期間が経ってしまったため、申し訳ないですが一旦Closeします。再開する場合はReopenしていただけるとありがたいです。この度はせっかくコントリビューション頂いたのに申し訳ありませんでした。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

インデントの設定がテンプレートファイルに反映されない
2 participants