Skip to content

Commit

Permalink
Merge pull request #61 from glyn/improve-naming
Browse files Browse the repository at this point in the history
Rename Python code
  • Loading branch information
cdransf authored Jan 6, 2025
2 parents ca8620e + 996b9c6 commit 8e98cc6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ai_robots_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ jobs:
git config --global user.name "dark-visitors"
git config --global user.email "[email protected]"
echo "Updating robots.json with data from darkvisitor.com ..."
python code/dark_visitors.py --update
python code/robots.py --update
echo "... done."
git --no-pager diff
git add -A
git diff --quiet && git diff --staged --quiet || (git commit -m "Update from Dark Visitors" && git push)
shell: bash
call-main:
convert:
name: convert
needs: dark-visitors
uses: ./.github/workflows/main.yml
secrets: inherit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
git log -1
git status
echo "Updating robots.txt and table-of-bot-metrics.md if necessary ..."
python code/dark_visitors.py --convert
python code/robots.py --convert
echo "... done."
git --no-pager diff
git add -A
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion code/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import json
from pathlib import Path

from dark_visitors import json_to_txt, json_to_table
from robots import json_to_txt, json_to_table


def test_robots_txt_creation():
Expand Down

0 comments on commit 8e98cc6

Please sign in to comment.