Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 191
Script cleanups#67
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
Uh oh!
There was an error while loading. Please reload this page.
Script cleanups #67
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -38,5 +38,7 @@ | ||
| "ReadError", | ||
| "WriteError", | ||
| "CloseError", | ||
| "ProtocolError", | ||
| "ProxyError", | ||
| ] | ||
| __version__ = "0.8.4" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,5 @@ | ||
| #!/bin/sh -e | ||
| PYTHONPATH=. | ||
| if [ -d 'venv' ] ; then | ||
| PREFIX="venv/bin/" | ||
| else | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,16 @@ | ||
| #!/bin/sh -e | ||
| export PREFIX="" | ||
| PACKAGE="httpcore" | ||
| if [ -d 'venv' ] ; then | ||
| export PREFIX="venv/bin/" | ||
| PREFIX="venv/bin/" | ||
| else | ||
| PREFIX="" | ||
| fi | ||
| export SOURCE_FILES="httpcore tests" | ||
| set -x | ||
| ${PREFIX}mypy --ignore-missing-imports httpcore | ||
| ${PREFIX}mypy --ignore-missing-imports ${PACKAGE} | ||
| ${PREFIX}flake8 --max-line-length 88 ${PACKAGE} | ||
| ${PREFIX}black --check --exclude '(httpcore/_sync|tests/sync_tests)/.*' --target-version=py37 ${PACKAGE} tests | ||
| scripts/unasync --check |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,11 @@ | ||
| #!/bin/sh -e | ||
| if [ -d 'dist' ] ; then | ||
| rm -r dist | ||
| fi | ||
| if [ -d 'site' ] ; then | ||
| rm -r site | ||
| fi | ||
| if [ -d 'htmlcov' ] ; then | ||
| rm -r htmlcov | ||
| fi | ||
| if [ -d 'httpcore.egg-info' ] ; then | ||
| rm -r httpcore.egg-info | ||
| fi | ||
| PACKAGE=httpcore | ||
| rm -rf dist | ||
| rm -rf site | ||
| rm -rf htmlcov | ||
| rm -rf *.egg-info | ||
| find ${PACKAGE} -type f -name "*.py[co]" -delete | ||
| find ${PACKAGE} -type f -name __pycache__ -delete |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| #!/bin/sh -e | ||
| export PREFIX="" | ||
| PACKAGE="httpcore" | ||
| if [ -d 'venv' ] ; then | ||
| export PREFIX="venv/bin/" | ||
| PREFIX="venv/bin/" | ||
| else | ||
| PREFIX="" | ||
| fi | ||
| export SOURCE_FILES="httpcore tests" | ||
| set -x | ||
| ${PREFIX}autoflake --in-place --recursive $SOURCE_FILES | ||
| ${PREFIX}isort --project=httpcore --recursive --apply $SOURCE_FILES | ||
| ${PREFIX}black --exclude 'httpcore/_sync/.*' --exclude 'tests/sync_tests/.*' --target-version=py36 $SOURCE_FILES | ||
| ${PREFIX}black --exclude '(httpcore/_sync|tests/sync_tests)/.*' --target-version=py37 ${PACKAGE} tests | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thoughts on keeping | ||
| scripts/unasync | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| #!/bin/sh -e | ||
| VERSION_FILE="httpcore/__init__.py" | ||
| PYTHONPATH=. | ||
| if [ -d 'venv' ] ; then | ||
| PREFIX="venv/bin/" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| #!/bin/sh -e | ||
| export PREFIX="" | ||
| if [ -d 'venv' ] ; then | ||
| export PREFIX="venv/bin/" | ||
| PREFIX="venv/bin/" | ||
| else | ||
| PREFIX="" | ||
| fi | ||
| ${PREFIX}python unasync.py ${@} |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.