Skip to content

Commit

Permalink
update style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kurianbenoy committed Feb 20, 2024
1 parent 464f3ff commit 39348ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ modal deploy server.py

## Style checks

- We are using [ruff](https://docs.astral.sh/ruff/), an extremely fast Python linter and code formatter, written in Rust for checking formatting and code styles.
- We are using [ruff](https://docs.astral.sh/ruff/), an extremely fast Python linter and code formatter, written in Rust for checking formatting and code styles. Along with pre-commit to manage ruff as CI for testing style and minor other tests as well.

For style checks use the following command:

Expand All @@ -40,6 +40,8 @@ ruff check .
ruff check --fix
# Now that our project is passing ruff check, we can run the Ruff formatter via ruff format:
ruff format .
# Pre-commit check
pre-commit run --all-files
```

## Contributing
Expand Down
6 changes: 3 additions & 3 deletions api/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fastapi
modal==0.56.4822
pre-commit
ruff

# dev-requirements
pre-commit==3.6.2
ruff==0.2.2

0 comments on commit 39348ee

Please sign in to comment.