mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-23 05:03:45 +08:00
chore: add __pycache__ to .gitignore and remove sys.path hack in tests
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
# python
|
# python
|
||||||
.venv/
|
.venv/
|
||||||
|
__pycache__/
|
||||||
*.py[co]
|
*.py[co]
|
||||||
|
|
||||||
# website
|
# website
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
"""Tests for fetch_github_stars module."""
|
"""Tests for fetch_github_stars module."""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
|
||||||
from fetch_github_stars import (
|
from fetch_github_stars import (
|
||||||
build_graphql_query,
|
build_graphql_query,
|
||||||
extract_github_repos,
|
extract_github_repos,
|
||||||
|
|||||||
Reference in New Issue
Block a user