Skip to content

Commit

Permalink
fix: moved scripts and data into separate folders
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 3, 2023
1 parent ef3d4b0 commit 741ccd5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
README.md: README.md.in metadata.yaml
python3 generate_readme.py
README.md: README.md.in data/metadata.yaml
python3 scripts/generate_readme.py

.PHONY: metadata.yaml
metadata.yaml:
python3 update_metadata.py
.PHONY: data/metadata.yaml
data/metadata.yaml:
python3 scripts/update_metadata.py
2 changes: 1 addition & 1 deletion README.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Current trends and state of the art for using open & local LLM models as copilot

📝 *Help keep this list relevant and up-to-date by [making edits][edit]!*

[edit]: https://github.com/ErikBjare/are-copilots-local-yet/edit/master/data.yaml
[edit]: https://github.com/ErikBjare/are-copilots-local-yet/edit/master/data/data.yaml

## 📋 Summary

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions generate_readme.py → scripts/generate_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
env = Environment(loader=FileSystemLoader("."))
template = env.get_template("README.md.in")

with open("data.yaml", "r") as f:
with open("data/data.yaml", "r") as f:
tables = yaml.safe_load(f)

with open("metadata.yaml", "r") as f:
with open("data/metadata.yaml", "r") as f:
metadata = yaml.safe_load(f)

# combine
Expand Down
2 changes: 1 addition & 1 deletion update_metadata.py → scripts/update_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ def _update_metadata(link):


if __name__ == "__main__":
save_metadata("data.yaml", "metadata.yaml")
save_metadata("data/data.yaml", "data/metadata.yaml")

0 comments on commit 741ccd5

Please sign in to comment.