fix: fixed formatting

This commit is contained in:
sankalp committed 2026-07-21 16:42:40 +05:45
1 parent 361d52b285
commit f5271e1b9b
2 files changed
+8 -3

No files matched your search

+5 -2
View File
@@ -90,12 +90,14 @@ Modus/
## Development Workflow
1. **Create a branch** from `dev`:
```bash
git checkout dev
git checkout -b feat/my-feature
```
2. **Make your changes** and ensure they pass linting:
```bash
# Lint
.venv/bin/ruff check
@@ -111,6 +113,7 @@ Modus/
```
3. **Test your changes** by running the app:
```bash
uv run start
```
@@ -134,7 +137,7 @@ Modus uses [Ruff](https://docs.astral.sh/ruff/) for both linting and formatting.
### Enforced via Ruff
| Rule | What it catches |
|------|----------------|
| -------- | ------------------------------------------ |
| `E`, `W` | Pycodestyle style errors |
| `F` | Pyflakes (unused imports, undefined names) |
| `I` | Import sorting (isort) |
@@ -176,7 +179,7 @@ Follow [Conventional Commits](https://www.conventionalcommits.org/):
### Types
| Type | Use for |
|------|---------|
| ---------- | ------------------------------------------------ |
| `feat` | New feature |
| `fix` | Bug fix |
| `refactor` | Code restructuring without behavior change |
+3 -1
View File
@@ -258,7 +258,9 @@ class LockScreen(Window):
return False # stop timeout
def on_activate(self, entry: Entry, *args):
if not pam.pam().authenticate(getpass.getuser(), (entry.get_text() or "").strip()):
if not pam.pam().authenticate(
getpass.getuser(), (entry.get_text() or "").strip()
):
entry.set_text("")
entry.set_placeholder_text("Wrong Password")
return