Skip to content

Commit 6ccff44

Browse files
committed
Enhance pre-commit configuration to support markdown formatting and update README code block for better readability
1 parent 1b0502e commit 6ccff44

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
name: ruff format
4242
entry: uv run ruff format
4343
language: system
44-
types: [python]
44+
types_or: [python, markdown]
4545
args: [--check]
4646

4747
# mypy - Type checking

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
"source.fixAll.ruff": "explicit"
2323
}
2424
},
25+
"[markdown]": {
26+
"editor.defaultFormatter": "charliermarsh.ruff",
27+
"editor.formatOnSave": true
28+
},
2529
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
2630

2731
"sops-edit.onlyUseButtons": false,

middleware/sql_to_arc/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ Configuration is defined by `middleware.sql_to_arc.config.Config` and can be pro
3939

4040
```python
4141
config = Config.from_data({
42-
"connection_string": "postgresql+asyncpg://user:pass@localhost:5432/edaphobase",
43-
"rdi": "edaphobase",
44-
"api_client": {
45-
"api_url": "http://localhost:8000",
46-
"client_cert_path": "/path/to/cert.pem",
47-
"client_key_path": "/path/to/key.pem",
48-
"verify_ssl": "false",
49-
},
42+
"connection_string": "postgresql+asyncpg://user:pass@localhost:5432/edaphobase",
43+
"rdi": "edaphobase",
44+
"api_client": {
45+
"api_url": "http://localhost:8000",
46+
"client_cert_path": "/path/to/cert.pem",
47+
"client_key_path": "/path/to/key.pem",
48+
"verify_ssl": "false",
49+
},
5050
})
5151
```
5252

0 commit comments

Comments
 (0)