Skip to content

Commit

Permalink
Add black pre-commit hook
Browse files Browse the repository at this point in the history
This commit adds the black formatter as a pre-commit hook to the
repository

Issue princeton-nlp#195 Black Format Codebase
  • Loading branch information
hminsky2002 committed Apr 17, 2024
1 parent be2c4c2 commit 1bec962
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ repos:
# Run the formatter.
# - id: ruff-format

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.0
hooks:
- id: black
language_version: python3.9
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
python run.py --model_name "gpt4" --data_path "/path/to/my_issue.md" --repo_path "/path/to/my/local/repo" --environment_setup "/path/to/setup.sh" --config_file "config/default_from_url.yaml" --apply_patch_locally
```
"""

'poop'
handler = RichHandler(show_time=False, show_path=False)
handler.setLevel(logging.DEBUG)
logger = logging.getLogger("run_dev")
Expand Down

0 comments on commit 1bec962

Please sign in to comment.