cookiecutter-hypermodern-python
ruff
cookiecutter-hypermodern-python | ruff | |
---|---|---|
9 | 97 | |
1,727 | 26,896 | |
- | 5.3% | |
3.0 | 10.0 | |
1 day ago | 6 days ago | |
Python | Rust | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cookiecutter-hypermodern-python
-
A Tale of Two Kitchens - Hypermodernizing Your Python Code Base
Hypermodern Python Cookiecutter
-
Boring Python: Code Quality
There is also a 'hypermodern' cookie cutter template for python projects - I've used it several times now and it works mostly out of the box:
https://github.com/cjolowicz/cookiecutter-hypermodern-python
-
What's your default way setting up packages, testing, linting, and imports
See https://github.com/cjolowicz/cookiecutter-hypermodern-python for a template and https://cjolowicz.github.io/posts/hypermodern-python-01-setup/ for some background explanation.
-
Do you need docs such as mkdocs or sphinx on private github projects?
I often see templates like COOKIETEMPLE or HYPERMODERN python add a separate directory called docs which either uses sphinx or mkdocs or readthedocs and has github actions for publishing docs.
-
Here are 5 Python project starter templates after digging through 100s of them that I think are spot o
Vouching for https://github.com/cjolowicz/cookiecutter-hypermodern-python .
-
I developed a template for starting new Python projects! Features: Poetry, GitHub CI/CD, MkDocs, publishing to PyPi/Artifactory, Pytest, Tox, black and isort.
Seems pretty similar to https://cookiecutter-hypermodern-python.readthedocs.io/
-
Just created an open-source text adventure game engine. Still didn't upload to PyPi but will soon!
Check out Hypermodern python https://cjolowicz.github.io/posts/hypermodern-python-01-setup/ and the cookiecutter for it https://github.com/cjolowicz/cookiecutter-hypermodern-python
- [D] Going beyond average ML Engineer
- Are there any books or videos that describe how to organize large projects?
ruff
-
Ruff: The Extensible Python Linter
Ruff is an open-source Python linter created by Astral Sh that stands out for its impressive speed, adaptability, and wide-ranging features.
-
Introducing Tapyr: Create and Deploy Enterprise-Ready PyShiny Dashboards with Ease
Leverage Python Tools: Tapyr takes advantage of Python’s ecosystem tools, including ruff, pytest, and others.
-
Ask HN: High quality Python scripts or small libraries to learn from
I think I mention this all the time when this comes up, but I learned the most 'best practices' through using ruff.
https://docs.astral.sh/ruff/
I just installed and enabled all the rules by setting
-
Enhance Your Project Quality with These Top Python Libraries
Ruff is a Python linter that helps to identify and remove code smells. Over 700 built-in rules: Ruff includes native re-implementations of popular Flake8 plugins, like flake8-bugbear. And also built-in caching to avoid re-analyzing unchanged files.
-
Ask HN: What interesting project ideas you've got but have no time to work on?
Because the Python's "ast" modules is too slow, and lacks proper "format" feature (it has unparse but it removes comments, and forgets the current style completely). I use "ruff" a lot (https://github.com/astral-sh/ruff) which is in Rust. But I want to be able to implement fast custom linters in Go (linters that ruff / fixit lack, and Python linters lack or are too slow).
-
Rye: A Vision Continued
I think it’s interesting that rye uses ruff (https://github.com/astral-sh/ruff) for linting and formatting. That’s the right call, and it’s also correct to bundle that in for an integrated dev experience.
I had to guess, that’s the path that the Astral team would take as well - expand ruff’s capabilities so it can do everything a Python developer needs. So the vision that Armin is describing here might be achieved by ruff eventually. They’d have an advantage that they’re not a single person maintenance team, but the disadvantage of needing to show a return to their investors.
- An fast Python linter and code formatter, written in Rust
-
Smooth Packaging: Flowing from Source to PyPi with GitLab Pipelines
Adding more weight to ease of setup and configurability, the choice came down on flake8. It is easy to integrate, since its also available through pip and let’s you configure which standards you want to omit by simply stating them as a list via the --ignore switch. Moving to ruff appears quite smooth, so future updates may do so.
- Show HN: Marimo – an open-source reactive notebook for Python
-
AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting
I confess I stole the pip recipe from Charlie :D
https://github.com/astral-sh/ruff/blob/main/.github/workflow...
What are some alternatives?
py-healthchecks.io - A python client for healthchecks.io. Supports the management api and ping api
black - The uncompromising Python code formatter
reorder-python-imports - Rewrites source to reorder python imports
mypy - Optional static typing for Python
awesome-pytest - A curated list of awesome pytest resources
pyright - Static Type Checker for Python
Adventura
Pylint - It's not just a linter that annoys you!
mutmut - Mutation testing system
Flake8 - flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.