Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/check
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ export SOURCE_FILES="httpcore tests"

set -x

${PREFIX}isort --check --diff --skip-glob 'httpcore/_sync/*' --skip-glob 'tests/sync_tests/*' --project=httpcore $SOURCE_FILES
${PREFIX}black --check --diff --exclude 'httpcore/_sync/.*|tests/sync_tests/.*' --target-version=py36 $SOURCE_FILES
${PREFIX}mypy --ignore-missing-imports httpcore
scripts/unasync --check
4 changes: 2 additions & 2 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export SOURCE_FILES="httpcore tests"
set -x

${PREFIX}autoflake --in-place --recursive $SOURCE_FILES
${PREFIX}isort --project=httpcore $SOURCE_FILES
${PREFIX}black --exclude 'httpcore/_sync/.*' --exclude 'tests/sync_tests/.*' --target-version=py36 $SOURCE_FILES
${PREFIX}isort --skip-glob 'httpcore/_sync/*' --skip-glob 'tests/sync_tests/*' --project=httpcore $SOURCE_FILES
${PREFIX}black --exclude 'httpcore/_sync/.*|tests/sync_tests/.*' --target-version=py36 $SOURCE_FILES
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think the .* is necessary but eh 🤷‍♂️. Would be nice if black used globs instead of regexes.


# Run unasync last because its `--check` mode is not aware of code formatters.
# (This means sync code isn't prettified, and that's mostly okay.)
Expand Down