mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-19 08:02:30 +00:00
docs(contributing): warn that ruff format predates the codebase
The Development Setup block instructs new contributors to run `ruff format nanobot/`, but the tree predates the formatter and many lines exceed the configured 100-char limit (E501 is ignored). Running the command as documented produces an ~80-file unrelated diff that buries real changes. Document this and recommend formatting only the files actually touched.
This commit is contained in:
parent
2e31002e6e
commit
e14c0310ad
@ -103,8 +103,11 @@ pytest
|
||||
# Lint code
|
||||
ruff check nanobot/
|
||||
|
||||
# Format code
|
||||
ruff format nanobot/
|
||||
# Format code — optional. The existing tree predates `ruff format`,
|
||||
# so running it across `nanobot/` produces a large unrelated diff
|
||||
# (E501 is ignored, so many existing lines exceed the 100-char setting).
|
||||
# Format only files you've actually touched, not the whole package.
|
||||
ruff format <files-you-changed>
|
||||
```
|
||||
|
||||
## Contribution License
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user