Skip to content

Conversation

kyuridenamida
Copy link
Owner

@kyuridenamida kyuridenamida commented Jan 2, 2019

  • postprocess.exec_on_each_problem_dir 毎回問題用のディレクトリが生成された後に実行するコマンド。cwdは問題用のディレクトリ(workspace/arc001/Aとか)
  • postprocess.exec_on_contest_dir コンテストのディレクトリを生成したあとに一度だけ実行するコマンド。cwdはコンテスト用のディレクトリ(workspace/arc001/とか)

例: .atcodertools.tomlに以下を書くと、問題用ディレクトリ内で毎回clang-formatを実行して、最後にCMakeLists.txtをコンテスト用ディレクトリに生成する。

[codestyle]
indent_type = 'space' # 'tab' or 'space'
indent_width = 4

[postprocess]
exec_on_each_problem_dir='clang-format -i ./*.cpp'
exec_on_contest_dir='touch CMakeLists.txt'

@codecov-io
Copy link

codecov-io commented Jan 2, 2019

Codecov Report

Merging #59 into master will increase coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   91.36%   91.49%   +0.12%     
==========================================
  Files          34       36       +2     
  Lines        1668     1704      +36     
==========================================
+ Hits         1524     1559      +35     
- Misses        144      145       +1
Impacted Files Coverage Δ
atcodertools/config/config.py 100% <100%> (ø)
atcodertools/tools/envgen.py 82.73% <100%> (+0.91%) ⬆️
atcodertools/tools/postprocess_config.py 100% <100%> (ø)
atcodertools/codegen/code_style_config.py 93.75% <100%> (ø)
atcodertools/codegen/cpp_code_generator.py 94.28% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a710a3...ce6efde. Read the comment docs.

@asi1024
Copy link
Collaborator

asi1024 commented Jan 3, 2019

[codegen], [envgen] という名前はわかりづらいです.
例えば [codestyle], [postprocess] とかはどうでしょう

@kyuridenamida
Copy link
Owner Author

kyuridenamida commented Jan 3, 2019

賛成です。envgen->postprocessにするとしたら、exec_after_problem_created / exec_after_contest_created の名前はこのままで大丈夫ですか?好みありますか?

@asi1024
Copy link
Collaborator

asi1024 commented Jan 4, 2019

#54 を Merge した後にもう一度テストを回し直しましょう

@kyuridenamida
Copy link
Owner Author

kyuridenamida commented Jan 4, 2019

exec_foreach_problemとexec_for_contestにした。cwdの違いの説明も足した

@kyuridenamida
Copy link
Owner Author

kyuridenamida commented Jan 4, 2019

exec_on_each_problem_dirとexec_on_contest_dirのほうがコマンドとしての機能はよく説明できてる気がするが冗長かなあ

@asi1024
Copy link
Collaborator

asi1024 commented Jan 4, 2019

ええんちゃう?

@kyuridenamida
Copy link
Owner Author

良さそうだったらマージしてくれると嬉しいです。1月05日なため(?) 1.0.5をリリースしたいです

@kyuridenamida kyuridenamida added this to the 1.0.5 milestone Jan 5, 2019
@asi1024
Copy link
Collaborator

asi1024 commented Jan 5, 2019

流石,大阪出身はこんなに面白いジョーク言えるんやね

@asi1024
Copy link
Collaborator

asi1024 commented Jan 5, 2019

ユーザから見える部分についてはOKです.テスト通してmergeの流れでいきましょう

@kyuridenamida kyuridenamida merged commit 0f9c83a into master Jan 6, 2019
@kyuridenamida
Copy link
Owner Author

しまったPRのタイトルいじるの忘れてた。まあいいや...次から気をつけます

@kyuridenamida kyuridenamida changed the title introduce envgen config with exec_after_problem_created / exec_after_… introduce postprocess config with exec_on_each_problem_dir / exec_on_contest_dir… Jan 6, 2019
@kyuridenamida kyuridenamida deleted the issue/56 branch April 17, 2021 10:05
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.

3 participants