File tree Expand file tree Collapse file tree 7 files changed +28
-5
lines changed
Expand file tree Collapse file tree 7 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ matrix:
1616 dist : xenial
1717 sudo : required
1818 - env : TOXENV=flake8
19+ - env : TOXENV=isort
1920
2021install :
2122 - " travis_retry pip install setuptools --upgrade"
Original file line number Diff line number Diff line change 1+ import datetime
12import logging
2- import requests
3- from six .moves .urllib import parse as urllib_parse
43from uuid import uuid4
5- import datetime
4+
5+ import requests
66from lxml import etree
7+ from six .moves .urllib import parse as urllib_parse
78
89logger = logging .getLogger (__name__ )
910
Original file line number Diff line number Diff line change 1313# serve to show the default.
1414
1515from __future__ import absolute_import
16- import sys
16+
1717import os
18+ import sys
1819
1920# If extensions (or modules to document with autodoc) are in another directory,
2021# add these directories to sys.path here. If the directory is relative to the
Original file line number Diff line number Diff line change @@ -3,3 +3,12 @@ universal = 1
33
44[metadata]
55license_file = LICENSE.txt
6+
7+ [isort]
8+ combine_as_imports = true
9+ force_grid_wrap = 0
10+ include_trailing_comma = true
11+ line_length = 88
12+ multi_line_output = 3
13+ not_skip = __init__.py
14+ skip = .tox
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
33from __future__ import absolute_import
4+
45import codecs
6+
57from setuptools import setup
68
79with codecs .open ('README.rst' , encoding = 'utf-8' ) as f :
Original file line number Diff line number Diff line change 11"""Tests for the cas protocol-related code"""
22from __future__ import absolute_import
3+
4+ import sys
5+
36import cas
47from pytest import fixture
5- import sys
8+
69
710#general tests, apply to all protocols
811#
Original file line number Diff line number Diff line change 22envlist =
33 py{27,34,35,36,37}
44 flake8
5+ isort
56
67[flake8]
78max-line-length = 100
@@ -20,3 +21,8 @@ commands=py.test --tb native {posargs:tests}
2021deps =flake8
2122commands =flake8 {toxinidir}/cas.py
2223skip_install = true
24+
25+ [testenv:isort]
26+ deps = isort
27+ commands = isort --check-only --diff
28+ skip_install = true
You can’t perform that action at this time.
0 commit comments