Skip to content
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

Script cleanups #67

Closed
wants to merge 2 commits into from
Closed

Script cleanups #67

wants to merge 2 commits into from

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented Apr 30, 2020

  • Dropping PYTHONPATH, since we've got a -e . in the requirements.txt anyway.
  • Adding black and flake8 to the checks.
  • Consistent PREFIX style everywhere.
  • Dropping setup.cfg in favour of arguments in the scripts.

setup.cfg Show resolved Hide resolved
scripts/lint Show resolved Hide resolved
Copy link
Member

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

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

LGTM, just a question on keeping autoflake8 in 👍

${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
Copy link
Member

Choose a reason for hiding this comment

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

Thoughts on keeping autoflake? If we're adding flake8 to check it's definitely nice to have a quick way to fix things when they're broken.

@euri10 euri10 closed this May 21, 2020
@euri10 euri10 reopened this May 21, 2020
@euri10 euri10 closed this May 21, 2020
@yeraydiazdiaz
Copy link
Contributor

@euri10 wrong button?

@yeraydiazdiaz yeraydiazdiaz reopened this May 21, 2020
@euri10
Copy link
Member

euri10 commented May 21, 2020

Phone in my pocket 🙄 sorry

@tomchristie tomchristie closed this Aug 6, 2020
@tomchristie tomchristie deleted the script-cleanups branch August 6, 2020 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants