Skip to content

Add lintrunner to format code#1884

Merged
tianleiwu merged 4 commits into
mainfrom
tlwu/lintrunner
Nov 19, 2025
Merged

Add lintrunner to format code#1884
tianleiwu merged 4 commits into
mainfrom
tlwu/lintrunner

Conversation

@tianleiwu
Copy link
Copy Markdown
Contributor

@tianleiwu tianleiwu commented Nov 19, 2025

  • Add lintrunner setttings (similar to onnxruntime).
  • Format code by "lintrunner -a --all-files"

This enables lintrunner for linting. You can install the dependencies and initialize with

pip install -r requirements-lintrunner.txt
lintrunner init

This will install lintrunner on your system and download all the necessary dependencies to run linters locally.

To format local changes:

lintrunner -a

To format all files:

lintrunner -a --all-files

@tianleiwu tianleiwu enabled auto-merge (squash) November 19, 2025 22:06
@tianleiwu tianleiwu merged commit da58e20 into main Nov 19, 2025
15 checks passed
@tianleiwu tianleiwu deleted the tlwu/lintrunner branch November 19, 2025 22:09
kunal-vaishnavi pushed a commit that referenced this pull request Dec 5, 2025
* Add lintrunner setttings (similar to onnxruntime).
* Format code by "lintrunner -a --all-files"

----

This enables [lintrunner](https://github.com/suo/lintrunner) for
linting. You can install the dependencies and initialize with

```sh
pip install -r requirements-lintrunner.txt
lintrunner init
```

This will install lintrunner on your system and download all the
necessary dependencies to run linters locally.

To format local changes:

```bash
lintrunner -a
```

To format all files:

```bash
lintrunner -a --all-files
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants