Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sgqlc for graphql requests #181

Merged
merged 7 commits into from
Mar 11, 2023
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
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
branches: [ master ]
workflow_dispatch:

concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -38,7 +42,7 @@ jobs:
- name: Lint with flake8 and pylint
run: |
flake8 .
pylint PlexAniSync.py TautulliSyncHelper.py plexmodule.py anilist.py custom_mappings.py || pylint-exit --error-fail --warn-fail $?
pylint PlexAniSync.py TautulliSyncHelper.py ./plexanisync || pylint-exit --error-fail --warn-fail $?
build-docker-plexanisync:
needs: lint
uses: rickdb/plexanisync/.github/workflows/build-docker-image.yml@master
Expand Down
10 changes: 4 additions & 6 deletions PlexAniSync.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@

import coloredlogs

import anilist
import graphql
import plexmodule
from _version import __version__
from custom_mappings import read_custom_mappings
from plexanisync import anilist, graphql, plexmodule
from plexanisync._version import __version__
from plexanisync.custom_mappings import read_custom_mappings

# Logger settings
LOG_FILENAME = "PlexAniSync.log"
Expand All @@ -27,7 +25,7 @@
# Debug log
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s %(levelname)s %(message)s",
format="%(asctime)s %(levelname)s %(name)s %(message)s",
handlers=[logging.FileHandler("PlexAniSync-DEBUG.log", "w", "utf-8")],
)

Expand Down
9 changes: 3 additions & 6 deletions TautulliSyncHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@

import coloredlogs

import anilist
import graphql
import plexmodule
from _version import __version__
from custom_mappings import read_custom_mappings
from plexanisync import anilist, graphql, plexmodule
from plexanisync._version import __version__
from plexanisync.custom_mappings import read_custom_mappings

# Logger settings
logger = logging.getLogger("PlexAniSync")
coloredlogs.install(fmt="%(asctime)s %(message)s", logger=logger)


# Enable this if you want to also log all messages coming from imported
# libraries
# coloredlogs.install(level='DEBUG')
Expand Down
Loading