Skip to content

Script cleanups - #67

Closed
lovelydinosaur wants to merge 2 commits into
masterfrom
script-cleanups
Closed

Script cleanups#67
lovelydinosaur wants to merge 2 commits into
masterfrom
script-cleanups

Conversation

@lovelydinosaur

@lovelydinosaurlovelydinosaur commented Apr 30, 2020

Copy link
Copy Markdown
Contributor
  • 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.

Comment threadsetup.cfg
Comment threadscripts/lint
@florimondmancaflorimondmanca mentioned this pull request May 21, 2020

@florimondmancaflorimondmanca left a comment

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.

LGTM, just a question on keeping autoflake8 in 👍

Comment threadscripts/lint
${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
Copy Markdown
Contributor

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.

@euri10euri10 closed this May 21, 2020
@euri10euri10 reopened this May 21, 2020
@euri10euri10 closed this May 21, 2020
@yeraydiazdiaz

Copy link
Copy Markdown
Contributor

@euri10 wrong button?

@euri10

Copy link
Copy Markdown

Phone in my pocket 🙄 sorry

@lovelydinosaur
lovelydinosaur deleted the script-cleanups branch August 6, 2020 09:39
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@lovelydinosaur@yeraydiazdiaz@euri10@florimondmanca