Use modern python development practices #5
Closed
Benjamin-Nussbaum
started this conversation in
General
Replies: 3 comments 2 replies
|
@nunezco2 @marcosfrenkel Let me know what you think. If it looks good, I am happy to take care of this boilerplate setup. |
1 reply
|
Re: import sorting I prefer to have every import on its own line to reduce possible merge conflicts. However, it's easy enough to change the formatting style in |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The following recommendations are heavily influenced by https://www.stuartellis.name/articles/python-modern-practices/. See the other repositories in this organization for quick reference of how I have already been implementing these concepts.
In particular, we should:
Develop for the most recent version of python available
Use a project tool
Lint and format with Ruff. See implementation in the other repos in this org.
Use TOML for configuration and data files which must be human-read/writable.
JSON is fine for passing data when humans don't need to directly interact with the file
YAML and INI should be avoided
Use a
pyproject.tomlfile to store project information and list dependencies.pyproject.tomls in the other repos is a slew of lint rules to be used with Ruff.Use the
src/layout directory structureAll reactions