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 bc275d3
Show file tree
Hide file tree
Showing 2 changed files with 5 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
1 change: 0 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
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
```
"""

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

0 comments on commit bc275d3

Please sign in to comment.