skip ambiguous isort modules

This commit is contained in:
Unrud 2018-09-05 11:30:25 +02:00 committed by Unrud
parent 901c5d059f
commit 9c802e0f57
13 changed files with 28 additions and 16 deletions

View File

@ -29,7 +29,6 @@ import datetime
import io
import logging
import pkg_resources
import posixpath
import pprint
import random
import time
@ -52,6 +51,8 @@ from radicale.app.put import ApplicationPutMixin
from radicale.app.report import ApplicationReportMixin
from radicale.log import logger
import posixpath # isort:skip
VERSION = pkg_resources.get_distribution("radicale").version

View File

@ -17,13 +17,14 @@
# You should have received a copy of the GNU General Public License
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
import posixpath
from http import client
from urllib.parse import quote
from radicale import httputils, pathutils, storage, xmlutils
from radicale.log import logger
import posixpath # isort:skip
def propose_filename(collection):
"""Propose a filename for a collection."""

View File

@ -17,7 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
import posixpath
import socket
from http import client
@ -26,6 +25,8 @@ from radicale import item as radicale_item
from radicale import pathutils, storage, xmlutils
from radicale.log import logger
import posixpath # isort:skip
class ApplicationMkcalendarMixin:
def do_MKCALENDAR(self, environ, base_prefix, path, user):

View File

@ -17,7 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
import posixpath
import socket
from http import client
@ -26,6 +25,8 @@ from radicale import item as radicale_item
from radicale import pathutils, storage, xmlutils
from radicale.log import logger
import posixpath # isort:skip
class ApplicationMkcolMixin:
def do_MKCOL(self, environ, base_prefix, path, user):

View File

@ -17,13 +17,14 @@
# You should have received a copy of the GNU General Public License
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
import posixpath
from http import client
from urllib.parse import urlparse
from radicale import httputils, pathutils, storage
from radicale.log import logger
import posixpath # isort:skip
class ApplicationMoveMixin:
def do_MOVE(self, environ, base_prefix, path, user):

View File

@ -18,7 +18,6 @@
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
import itertools
import posixpath
import socket
from http import client
from xml.etree import ElementTree as ET
@ -26,6 +25,8 @@ from xml.etree import ElementTree as ET
from radicale import httputils, pathutils, rights, storage, xmlutils
from radicale.log import logger
import posixpath # isort:skip
def xml_propfind(base_prefix, path, xml_request, allowed_items, user):
"""Read and answer PROPFIND requests.

View File

@ -18,7 +18,6 @@
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
import itertools
import posixpath
import socket
import sys
from http import client
@ -30,6 +29,8 @@ from radicale import item as radicale_item
from radicale import pathutils, storage, xmlutils
from radicale.log import logger
import posixpath # isort:skip
class ApplicationPutMixin:
def do_PUT(self, environ, base_prefix, path, user):

View File

@ -18,7 +18,6 @@
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
import contextlib
import posixpath
import socket
from http import client
from urllib.parse import unquote, urlparse
@ -28,6 +27,8 @@ from radicale import httputils, pathutils, storage, xmlutils
from radicale.item import filter as radicale_filter
from radicale.log import logger
import posixpath # isort:skip
def xml_report(base_prefix, path, xml_request, collection, unlock_storage_fn):
"""Read and answer REPORT requests.

View File

@ -18,9 +18,10 @@
import contextlib
import os
import posixpath
import threading
import posixpath # isort:skip
if os.name == "nt":
import ctypes
import ctypes.wintypes

View File

@ -18,11 +18,12 @@
import contextlib
import os
import posixpath
from radicale import pathutils
from radicale.log import logger
import posixpath # isort:skip
class CollectionDiscoverMixin:
@classmethod

View File

@ -26,12 +26,12 @@ import os
import shutil
import tempfile
import pytest
from radicale import Application, config
from .test_base import BaseTest
import pytest # isort:skip
class TestBaseAuthRequests(BaseTest):
"""Tests basic requests with auth.

View File

@ -22,20 +22,21 @@ Radicale tests with simple requests.
import base64
import os
import posixpath
import shutil
import sys
import tempfile
import xml.etree.ElementTree as ET
from functools import partial
import pytest
from radicale import Application, config
from . import BaseTest
from .helpers import get_file_content
import posixpath # isort:skip
import pytest # isort:skip
class BaseRequestsMixIn:
"""Tests with simple requests."""

View File

@ -15,7 +15,6 @@
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
import os
import posixpath
import time
from http import client
@ -24,6 +23,8 @@ import pkg_resources
from radicale import httputils, pathutils, web
from radicale.log import logger
import posixpath # isort:skip
MIMETYPES = {
".css": "text/css",
".eot": "application/vnd.ms-fontobject",