jbloomAus / DecisionTransformerInterpretability

Interpreting how transformers simulate agents performing RL tasks
https://jbloomaus-decisiontransformerinterpretability-app-4edcnc.streamlit.app/
MIT License
68 stars 16 forks source link

Set up black formatter pre-commit for the repo. #10

Closed jbloomAus closed 1 year ago

jbloomAus commented 1 year ago

Follow this tutorial: https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/

ruphail commented 1 year ago

I'll work on this. I'll copy the same configurations that are listed on the tutorial

Tasks:

ruphail commented 1 year ago

Did you also want to set-up flake8?

jbloomAus commented 1 year ago

I think flake8 is set up already in the github actions so having it in pre-commit is probably also a good idea!

On Sat, Apr 8, 2023 at 5:39 AM wtesqie1 @.***> wrote:

Did you also want to set-up flake8?

— Reply to this email directly, view it on GitHub https://github.com/jbloomAus/DecisionTransformerInterpretability/issues/10#issuecomment-1500583136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQPMYZ5BTTM4ZHOVB7B4CE3XABUOVANCNFSM6AAAAAAV77LV7A . You are receiving this because you authored the thread.Message ID: @.*** .com>

JayBaileyCS commented 1 year ago

Can this be closed at this point?

jbloomAus commented 1 year ago

yes, can make a seperate card for gh action https://black.readthedocs.io/en/stable/integrations/github_actions.html