Commit graph

2 commits

Author SHA1 Message Date
Zanie Blue
d50d72c144
Clean up some path handling in the schemastore script (#273)
Mostly making sure that the script is robust to alternative working
directories, and some stylistic nits.

Following up on
https://github.com/astral-sh/ty/pull/65#discussion_r2077839514 — not to
be annoying, but using `git` to find the root _can_ be wrong here


```
❯ cd ruff
❯ uv run --only-dev ../scripts/update_schemastore.py
> /Users/zb/workspace/ty/scripts/update_schemastore.py(146)main()
-> breakpoint()
(Pdb) print(root)
/Users/zb/workspace/ty/ruff
```
2025-05-08 09:32:18 -05:00
Micha Reiser
9efd86025d
Add script to update ty.json in schemastore (#65) 2025-05-08 11:30:05 +00:00