mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 20:44:18 +00:00
Drop messy py26 support in favour of 100% coverage
This commit is contained in:
parent
d49f04c69e
commit
f775891717
2 changed files with 1 additions and 9 deletions
|
|
@ -1,13 +1,11 @@
|
||||||
language: python
|
language: python
|
||||||
env: # These should match the tox env list
|
env: # These should match the tox env list
|
||||||
- TOXENV=py26
|
|
||||||
- TOXENV=py27
|
- TOXENV=py27
|
||||||
- TOXENV=py33
|
- TOXENV=py33
|
||||||
- TOXENV=py34
|
- TOXENV=py34
|
||||||
- TOXENV=pypy
|
- TOXENV=pypy
|
||||||
- TOXENV=pypy3
|
- TOXENV=pypy3
|
||||||
install:
|
install:
|
||||||
- if [[ $TOXENV == py26 ]]; then pip install ordereddict; fi
|
|
||||||
- pip install coveralls tox
|
- pip install coveralls tox
|
||||||
script: tox
|
script: tox
|
||||||
# Special snowflake. Our tests depend on making real commits.
|
# Special snowflake. Our tests depend on making real commits.
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,7 @@ from __future__ import print_function
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
import sys
|
||||||
|
from collections import OrderedDict
|
||||||
# Versions older than Python 2.6 will need to install ordereddict,
|
|
||||||
# but newer versions will import from the built-in collections module.
|
|
||||||
try:
|
|
||||||
from collections import OrderedDict
|
|
||||||
except ImportError:
|
|
||||||
from ordereddict import OrderedDict
|
|
||||||
|
|
||||||
import simplejson
|
import simplejson
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue