Skip to content

Commit

Permalink
Attempt to fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Jun 28, 2023
1 parent 0996f4b commit 68f294f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Linting

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
pre_job:
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ repos:
hooks:
- id: reorder-python-imports
language_version: python3.11
args: [--application-directories=.:src]
- repo: https://github.com/python/black
rev: 22.3.0
hooks:
Expand Down
3 changes: 1 addition & 2 deletions src/kolibri_app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os

from kolibri_app.constants import MAC

from kolibri.main import enable_plugin
from kolibri_app.constants import MAC

__version__ = "0.3.0"

Expand Down
6 changes: 3 additions & 3 deletions src/kolibri_app/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
from threading import Thread

import wx
from kolibri_app.constants import APP_NAME
from kolibri_app.logger import logging
from kolibri_app.view import KolibriView
from magicbus.plugins import SimplePlugin

from kolibri.main import initialize
from kolibri.plugins.app.utils import interface
from kolibri.plugins.app.utils import SHARE_FILE
from kolibri.utils.conf import KOLIBRI_HOME
from kolibri.utils.server import KolibriProcessBus
from kolibri_app.constants import APP_NAME
from kolibri_app.logger import logging
from kolibri_app.view import KolibriView


share_file = None
Expand Down
4 changes: 2 additions & 2 deletions src/kolibri_app/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class LoggerWriter(io.IOBase):
def __init__(self, writer):
self._writer = writer
self._msg = ""

def readable(self):
return False

def writable(self):
return True

Expand Down
3 changes: 2 additions & 1 deletion src/kolibri_app/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
from io import BytesIO

import wx
from wx import html2

from kolibri_app.constants import APP_NAME
from kolibri_app.constants import LINUX
from kolibri_app.constants import MAC
from kolibri_app.constants import WINDOWS
from kolibri_app.i18n import _
from kolibri_app.i18n import locale_info
from wx import html2


html2.WebView.MSWSetEmulationLevel(html2.WEBVIEWIE_EMU_IE11)
Expand Down

0 comments on commit 68f294f

Please sign in to comment.