Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
name: pre-commit

on: [push, pull_request]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pre-commit
- run: pre-commit run --verbose --all-files --show-diff-on-failure
Empty file modifiedmachine_learning/scoring_functions.py
100755 → 100644
Empty file.
Empty file modifiedmaths/sum_of_arithmetic_series.py
100755 → 100644
Empty file.
Empty file modifiedscheduling/round_robin.py
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion web_programming/instagram_crawler.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,7 +15,7 @@ def extract_user_profile(script) -> dict:
May raise json.decoder.JSONDecodeError
"""
data = script.contents[0]
info = json.loads(data[data.find('{"config"'): -1])
info = json.loads(data[data.find('{"config"'): -1])
return info["entry_data"]["ProfilePage"][0]["graphql"]["user"]


Expand Down