Skip to content
Myr

Merge pull request #579 from slingamn/pyflakes.release

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Changes for #574

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 38e6695, bcc4125 · Browse files · 5 files+35 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+35 added−10 removed

  • other:+35 added−10 removed

5 files+35 added−10 removed

modified:requests/auth.py+3 added-1 removed
10 unmodified lines
11import hashlib1213from base64 import b64encode1415from .compat import urlparse, str, is_py215from .compat import urlparse, str16from .utils import randombytes, parse_dict_header1718try:19 from oauthlib.oauth1.rfc5849 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER)20 from oauthlib.common import extract_params21 # hush pyflakes:22 SIGNATURE_HMAC; SIGNATURE_TYPE_AUTH_HEADER23except (ImportError, SyntaxError):24 SIGNATURE_HMAC = None25 SIGNATURE_TYPE_AUTH_HEADER = None26
165 unmodified lines
modified:.gitignore+5 added-2 removed
1.coverage2MANIFEST3coverage.xml4nosetests.xml5junit-report.xml6pylint.txt7toy.py6junit-report.xml7requests.egg-info/8violations.pyflakes.txt9cover/10docs/_build11requests.egg-info/12*.pyc13*.swp
modified:.travis.yml+1 added-1 removed
modified:Makefile+24 added-6 removed
1SHELL := /bin/bash23# these files should pass pyflakes4PYFLAKES_WHITELIST=$(shell find . -name "*.py" ! -path "./docs/*" ! -path "./tests/*" ! -path "./requests/packages/*" \5 ! -path "./requests/__init__.py" ! -path "./requests/compat.py")67# test_requests_ext.py depends on external services, and async doesn't work under Python 38# Travis/Jenkins should be ensuring that all other tests pass on all supported versions9CI_TESTS=$(shell find tests/ -name "*.py" ! -name "test_requests_ext.py" ! -name "test_requests_async.py")1011init:12 python setup.py develop13 pip install -r requirements.txt14
5 unmodified lines
2021simple:22 nosetests tests/test_requests.py2316ci:17 find tests/ -name "*.py" ! -name "test_requests_ext.py" ! -name "test_requests_async.py" | xargs nosetests --with-xunit --xunit-file=junit-report.xml24pyflakes:25 pyflakes ${PYFLAKES_WHITELIST}2627citests:28 nosetests ${CI_TESTS} --with-xunit --xunit-file=junit-report.xml2930ci: citests pyflakes3132travis: citests3334server:35 gunicorn httpbin:app --bind=0.0.0.0:7077 &3622stats:23 pyflakes requests | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > violations.pyflakes.txt37# compute statistics of various kinds38lemonade:39 -pyflakes requests > violations.pyflakes.txt40 # HTML output will be available in the default location, ./cover/41 nosetests --with-coverage --cover-html --cover-package=requests ${CI_TESTS} ./tests/test_requests_async.py4243site:44 cd docs; make dirhtml4528pyc:29 find . -name "*.pyc" -exec rm '{}' ';'46clean:47 git clean -Xfd4849deps:50 rm -fr requests/packages/urllib351 git clone https://github.com/shazow/urllib3.git
5 unmodified lines
modified:setup.py+2 added
10 unmodified lines
11from requests.compat import is_py31213try:14 from setuptools import setup15 # hush pyflakes16 setup17except ImportError:18 from distutils.core import setup1920if sys.argv[-1] == 'publish':
63 unmodified lines