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 a3941dc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Update stars
run: python update_stars.py

- name: Generate README
run: python generate_readme.py
run: make

- name: Commit and push changes
run: |
Expand Down
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 a3941dc

Please sign in to comment.