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
Adds a pysa quick start command: init-pya #506
Conversation
da4fb38
to
5b4894d
Compare
Can affirm linters and pyre are failing not due to these changes. |
@0xedward has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for working on this! I'm excited for this, since it'll help new users get set up with Pysa faster.
I had a few questions and suggestions
5b4894d
to
28c2ad8
Compare
@abishekvashok has updated the pull request. You must reimport the pull request before landing. |
28c2ad8
to
98012fe
Compare
@abishekvashok has updated the pull request. You must reimport the pull request before landing. |
@0xedward made the requested changes! Thanks for taking time to review this! |
@0xedward has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes! Would you be able to fix some of the flake8
linter errors? :)
It looks like our open source config for flake8 is missing the lines our internal config of flake8 is catching. Would you be able to fix all the lines causing B950
lint error when running flake8 locally?
98012fe
to
665205c
Compare
@abishekvashok has updated the pull request. You must reimport the pull request before landing. |
665205c
to
f480c57
Compare
@abishekvashok has updated the pull request. You must reimport the pull request before landing. |
@0xedward removed the unused import. Sorry I missed that somehow. With the open source config, I tried including B950 explicitly with select and tried removing some conflicting rules, but couldn't reproduce any B950s but managed to make sure every line is below 88 in length (which is kinda what B950 specifies ig), but still we should mirror the internal config for flake8 and maybe should fix the linters as well in another PR. |
@0xedward has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@abishekvashok - ah no problem! That makes sense, because the Github actions lint run for flake8 also didn't show any of those errors. If there any other issues, I'll fix them and merge this PR. Let's look into mirror our internal linter setup afterwards :) |
Everything we are doing here seems like things most python projects would want to do. Is there a tool that could do this for us? |
That is a good direction for us to tweak this towards. |
f480c57
to
c5e8fda
Compare
@abishekvashok has updated the pull request. You must reimport the pull request before landing. |
Changed the script to be a command :) |
@0xedward has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
c5e8fda
to
abcf215
Compare
@abishekvashok has updated the pull request. You must reimport the pull request before landing. |
@arthaud thank you for the suggestions, and sorry for messing up a bit. But it's fixed now :) |
@0xedward has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Haven't touched any python files to cause pyre to break :) |
abcf215
to
508e570
Compare
@abishekvashok has updated the pull request. You must reimport the pull request before landing. |
@0xedward done :) NB: Pyre is complaining about files not related to the PR. |
@0xedward has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
508e570
to
95d81a6
Compare
@abishekvashok has updated the pull request. You must reimport the pull request before landing. |
@arthaud done :) |
@0xedward has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Adds a pysa quick start command that helps users setup a suitable environment to run pysa. It handles commonly found issues in pysa and creates the best possible environment while handling even the edge case scenarios. Signed-off-by: Abishek V Ashok <abishekvashok@gmail.com>
95d81a6
to
2104ed2
Compare
@abishekvashok has updated the pull request. You must reimport the pull request before landing. |
I am amazed why flake8 couldn't detect the unused variable |
@0xedward has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Thanks for landing this! @abishekvashok would you also be able to update the quickstart docs to reference this? |
@gbleaney sure :) |
@abishekvashok ha! I consider < 24 hours very fast :) |
Adds a pysa quick command: init-pysa, that helps users setup a suitable
environment to run pysa. It handles commonly found issues in pysa and
creates the best possible environment while handling some of the edge
cases.
Test Plan
pyre init-pysa
Preview:
Signed-off-by: Abishek V Ashok abishekvashok@gmail.com
Fixes: MLH-Fellowship#80