Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
noklam committed Feb 3, 2025
1 parent 7100b86 commit f73288a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
## The First version of Rust
These are the main files included in the first version of Rust - that power only two specific rules. While it cannot be used in a meaningful way, it provides an easy way to understand how `ruff` (or generally other linter) works without getting into all the details that are not so important for education.

main.rs
cache.rs
check.rs
lib.rs
linter.rs
message.rs
parser.rs
- main.rs
- cache.rs
- check.rs
- lib.rs
- linter.rs
- message.rs
- parser.rs

## Libraries used for 1st version of ruff
The first-ever version of Ruff used the following Rust packages
Expand Down
1 change: 1 addition & 0 deletions src/ruff_in_python/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from .message import IfTuple, ImportStarUsage, Location, Message
import ast


def check_statement(path: Path, stmt: ast.stmt) -> list[Message]:
"""recursive function to parse statement"""
messages = []
Expand Down

0 comments on commit f73288a

Please sign in to comment.