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

Improve the devcontainer settings #1511

Merged
merged 3 commits into from
Mar 16, 2023
Merged

Conversation

haifeng-jin
Copy link
Contributor

This PR improves the devcontainer setup.

  • Use the image specially prepared for devcontainers and install tensorflow on post commands.
  • Extracted isort and black settings to pyproject.toml to make consistent behavior no matter how the commands are run. (Note that pyproject.toml is just there for the formatting setup not for package releases).
  • Enable the GitHub CLI gh inside devcontainers.
  • Fix the bug that settings in devcontainer.json did not work.
  • Add a verticle ruler in the editor for line length limit.

@haifeng-jin haifeng-jin changed the title Immprove the devcontainer settings Improve the devcontainer settings Mar 15, 2023
@haifeng-jin haifeng-jin marked this pull request as ready for review March 15, 2023 05:35
Copy link
Contributor

@ianstenbit ianstenbit left a 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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's correct.

@haifeng-jin
Copy link
Contributor Author

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?

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.

Copy link
Contributor

@ianstenbit ianstenbit left a comment

Choose a reason for hiding this comment

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

Thanks Haifeng!

@ianstenbit ianstenbit merged commit 259e394 into keras-team:master Mar 16, 2023
ghost pushed a commit to y-vectorfield/keras-cv that referenced this pull request Nov 16, 2023
* update container setup

* use black formatting on save

* add the flake8 extension
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.

2 participants