sourcery
Rope
Our great sponsors
sourcery | Rope | |
---|---|---|
13 | 22 | |
1,481 | 1,836 | |
0.9% | 1.5% | |
6.3 | 9.3 | |
14 days ago | 22 days ago | |
Python | ||
MIT License | GNU Lesser General Public License v3.0 only |
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.
sourcery
-
Ask HN: How do you get an open-source product noticed by developers?
In my experience, the developer tools that really catch on do so via word of mouth. For example, our whole team recently adopted https://sourcery.ai/ (not an ad) because one developer tried it and hyped it up to everyone else who also liked it.
-
Google Python Style Guide
To those that wish to automate a subset of these conventions, there is a tool called Sourcery[1] that I, personally, am a huge fan of! Not only does it have a large set of default rules[2], but it can also allow you to write your own rules that may be specific to your team or organization, and as mentioned it can enable you to follow Google's Python style guide as well[3].
There are some refactorings that Sourcery suggest that I don't agree with myself, namely the usage of 'contextlib.suppress'[4] as I don't like to introduce an additional 'import' statement just to do something so trivial. I wish Sourcery would add the relevance of having possibly too many 'import' statements as a heuristic.
---
[1]: https://sourcery.ai/
[2]: https://docs.sourcery.ai/Reference/Default-Rules/ (expand the sub-pages)
[3]: https://docs.sourcery.ai/Reference/Optional-Rules/gpsg/
-
What are the best Python libraries to learn for beginners?
During development, tools like Sourcery could show you improvements for code quality.
-
Quick wins in improving your Python codebase health
One of the first tools I install when setting up my Python dev environment is Sourcery. This still uses AI/ML to suggest code improvements to your Python code, but unlike GitHub's Copilot, it won't write code for you.
-
git client for kde (gitklient)
"Sourcery" exists
-
Making Python Code Idiomatic by Automatic Refactoring Non-Idiomatic Python Code with Pythonic Idioms
Looks downright wicked https://sourcery.ai/
-
Create file if it doesn't exist, as well as its folders?
As a bit of trivia, https://sourcery.ai/ will replace
- Is there a linter which would suggest using elif rather than an else in an if clause?
-
[lspconfig] The Authentication token must be provided
I guess you have to signup in their website sourcery.ai. I actually don't use sourcery, I don't know the details on how to get the token.
-
Tools to write clean Go code
When I'm writing Python, one of my favorite tools is [Sourcery](https://sourcery.ai/). Are there any similar tools for Go? What else do you recommend?
Rope
-
In neovim ,how to do refactoring python code?
Hi, maintainer of rope here. There are a number of different options to use rope in Vim/Neovim, we've documented them in this page https://github.com/python-rope/rope/wiki/Rope-in-Vim-or-Neovim
-
Open Source Python libraries/projects that need contributions?
If you're looking for something with a bigger codebase, then the rope library in which pylsp-rope is based on is also welcoming of contributions.
-
Completion and auto imports
I think rope is the standard for refactoring, and should provide autoimports soon, though pyright might also be good for that.
-
NVIM: More complete autocomplete
rope
-
Making Python Code Idiomatic by Automatic Refactoring Non-Idiomatic Python Code with Pythonic Idioms
If you are interested in discussing this or have ideas you want to sketch out, meet me at rope's GitHub Discussion.
-
What motivates you writing open source software?
However, my biggest and most popular open source project is one that I don't originally write, but rather I inherited a popular project that has been abandoned by their original author/maintainers. I use Python a lot, so I wanted to contribute to the community in a significant way, so unlike my other projects I do take the time promoting this project as well. I felt it's more like a community service for this project.
-
What are some interesting open source projects to contribute code to?
I am the maintainer rope and pylsp-rope. They are libraries for automated Python refactoring and to do that from any LSP-capable editors. We are always welcoming contributors of all levels.
-
Why IDEs are Important
Rope has first class support for Vim and it can do a move refactoring, among other refactorings. From this, this feature is available from python-mode and ropevim.
-
Visual Studio Code is designed to fracture
rope
-
Why did you switch from another language to Rust? Do you regret not learning it earlier?
Okay this depends: if your code is static: perfectly possible for example with https://github.com/python-rope/rope (used for example by VS Code). If it's dynamic / generated via metaprogramming: I never tried it but I can't imagine that it'd work there, yes. However java tooling also can't do that because it simply doesn't support metaprogramming in any noteworthy way.
What are some alternatives?
jedi - Awesome autocompletion, static analysis and refactoring library for python
Bowler - Safe code refactoring for modern Python.
pylsp-rope - Extended refactoring capabilities for python-lsp-server using Rope
RedBaron - Bottom-up approach to refactoring in python
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
python-lsp-server - Fork of the python-language-server project, maintained by the Spyder IDE team and the community
ruff - An extremely fast Python linter and code formatter, written in Rust.
yt-channels-DS-AI-ML-CS - A comprehensive list of 180+ YouTube Channels for Data Science, Data Engineering, Machine Learning, Deep learning, Computer Science, programming, software engineering, etc.
Pylint - It's not just a linter that annoys you!
study-path - An organized learning path on Clean Code, Test-Driven Development, Legacy Code, Refactoring, Domain-Driven Design and Microservice Architecture
Python-mode - Vim python-mode. PyLint, Rope, Pydoc, breakpoints from box.