Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions install/.lintrunner.toml → .lintrunner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ init_command = [
'run',
'pip_init',
'--dry-run={{DRYRUN}}',
'--requirement=requirements-lintrunner.txt',
'--requirement=install/requirements-lintrunner.txt',
]

# Black + usort
Expand All @@ -46,7 +46,7 @@ init_command = [
'pip_init',
'--dry-run={{DRYRUN}}',
'--no-black-binary',
'--requirement=requirements-lintrunner.txt',
'--requirement=install/requirements-lintrunner.txt',
]
is_formatter = true

Expand Down Expand Up @@ -75,6 +75,6 @@ init_command = [
'run',
'pip_init',
'--dry-run={{DRYRUN}}',
'--requirement=requirements-lintrunner.txt',
'--requirement=install/requirements-lintrunner.txt',
]
is_formatter = true
16 changes: 15 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,23 @@ We actively welcome your pull requests.
2. If you've added code that should be tested, add tests.
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
5. Make sure your code lints.
5. Make sure your code is well-formatted using the repo linter. See "Linting" for details.
6. If you haven't already, complete the Contributor License Agreement ("CLA").


### Linting
Install the lintrunner dependencies from the requirements file.
```
pip3 install -r install/requirements-lintrunner.txt
```

After making your changes locally, run the lintrunner and apply all suggestions to your changes.
You can do this from the top-level torchchat directory - it will apply suggestions only to files that
you have touched.
```
lintrunner -a
```

## Contributor License Agreement ("CLA")
In order to accept your pull request, we need you to submit a CLA. You only need
to do this once to work on any of Meta's open source projects.
Expand Down
Loading