-
Notifications
You must be signed in to change notification settings - Fork 332
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
Improve the devcontainer settings #1511
Conversation
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.
This all looks reasonable to me, but I have to admit that I don't use the Devcontainer or VSCode -- perhaps I should be using them?
@@ -31,7 +31,7 @@ then | |||
exit 1 | |||
fi | |||
[ $# -eq 0 ] && echo "no issues with flake8" | |||
black --line-length 80 --check $files |
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.
Just to verify -- if using lint.sh
outside of devcontainer, this setting will still be taken from pyproject.toml
-- correct?
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.
Yes, that's correct.
You can try. I use chromebook so not many IDEs are available. I switched from vim and VS code has all the features I need. |
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 Haifeng!
* update container setup * use black formatting on save * add the flake8 extension
This PR improves the devcontainer setup.
isort
andblack
settings topyproject.toml
to make consistent behavior no matter how the commands are run. (Note thatpyproject.toml
is just there for the formatting setup not for package releases).gh
inside devcontainers.settings
indevcontainer.json
did not work.