Skip to content

Commit 0e66e44

Browse files
committed
Lint
1 parent 6494185 commit 0e66e44

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ A barebones FastAPI project that serves the landing page for the NASA Sky Explor
2020

2121
3. Open <http://127.0.0.1:8000/> in your browser to view the page titled **“Minimal FastAPI App.”**
2222

23+
## Linting
24+
25+
Install Ruff into your virtual environment and run it against the project source to keep the
26+
codebase clean:
27+
28+
```bash
29+
pip install ruff
30+
ruff check .
31+
```
32+
2333
## Project structure
2434

2535
```

ruff.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
line-length = 120
2+
src = ["src"]
3+
target-version = "py312"
4+
5+
[lint]
6+
select = ["E", "F", "I", "UP", "W"]

src/server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def read_aladin() -> str:
3333
return _read_html(ALADIN_PATH)
3434

3535

36-
3736
if __name__ == "__main__":
3837
import uvicorn
3938

0 commit comments

Comments
 (0)