Skip to content

Commit

Permalink
Merge pull request #8656 from sairina/update-precommit
Browse files Browse the repository at this point in the history
Update `pre-commit` config python version to 3.6
  • Loading branch information
indirectlylit authored Nov 12, 2021
2 parents 3d01931 + add3dc4 commit 05d580e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
rev: v1.3.3
hooks:
- id: reorder-python-imports
language_version: python2.7
language_version: python3
- repo: local
hooks:
- id: lint-frontend
Expand Down
2 changes: 1 addition & 1 deletion kolibri/core/content/management/commands/importcontent.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import concurrent.futures
import logging
import os

import concurrent.futures
import requests
from django.core.management.base import CommandError
from le_utils.constants import content_kinds
Expand Down
1 change: 0 additions & 1 deletion kolibri/core/tasks/compat.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import multiprocessing
import threading

from concurrent import futures

from kolibri.utils.conf import OPTIONS
Expand Down
1 change: 0 additions & 1 deletion kolibri/core/tasks/worker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging
import traceback

from concurrent.futures import CancelledError

from kolibri.core.tasks.compat import PoolExecutor
Expand Down
3 changes: 1 addition & 2 deletions kolibri/utils/debian_check.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import getpass
import os
import sys
from shutil import rmtree

from builtins import input
from shutil import rmtree

from .conf import KOLIBRI_HOME
from .server import installation_type
Expand Down
3 changes: 1 addition & 2 deletions packages/kolibri-tools/lib/i18n/utils.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# -*- coding: utf-8 -*-
import configparser
import functools
import io
import json
import logging
import os
import sys

import configparser

logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.INFO)
logging.StreamHandler(sys.stdout)

Expand Down

0 comments on commit 05d580e

Please sign in to comment.