8000 add typing.ContextManager on all supported Python versions by JelleZijlstra · Pull Request #422 · python/typing · GitHub
[go: up one dir, main page]

Skip to content

add typing.ContextManager on all supported Python versions #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 6, 2017
Merged
Prev Previous commit
Next Next commit
move to a single flake8 config
  • Loading branch information
JelleZijlstra committed May 4, 2017
commit 2cf22557054ec8b6ff35f4b2207f11372b57d5ac
20 changes: 16 additions & 4 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
[flake8]
# fake builtins for python2/*
builtins = basestring, unicode
max-line-length = 90
ignore =
# the code is sometimes better off without this
E129
# irrelevant to us
B303
# code may look better without this
E129,
# temporary ignores until we sort it out
E306,
E701,
E704,
F811,
# irrelevant plugins
B3,
DW12
exclude =
# This config is NOT for the main module.
setup.py
python2/typing.py,
src/typing.py
25 changes: 0 additions & 25 deletions .flake8-tests

This file was deleted.

3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ install:

script:
- export PYTHONPATH=`python -c "import sys; print('python2' if sys.version.startswith('2') else 'src')"`; py.test $PYTHONPATH
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then flake8 --config=.flake8; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then flake8 --config=.flake8-tests src/test_typing.py python2/test_typing.py; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then flake8; fi
0