Replies: 5 comments 6 replies
-
In SearXNG we had good experience with black code formatter and pylint for static code analysis. |
Beta Was this translation helpful? Give feedback.
-
I'd like to add some things of this sort. I have two (possibly contradictory) views here: (a) I'd like to use something that developers can run on their own machines before submitting a PR, and (b) a nicely formatted report is helpful. I've previously used a couple of different services for code quality analysis. While I was more-or-less happy with the output, I didn't like that you couldn't run the analysis locally, and then one of the services shut down (it was a startup) which was a hassle. |
Beta Was this translation helpful? Give feedback.
-
Re: Python versions, see the comments in #1, but in short: the plan is to support whatever CPython versions are actively supported by the Python Software Foundation, with an added 12 months to ensure people have time to migrate. Right now, that means Python 3.7 and later, with 3.7 to be dropped at the end of June 2024. |
Beta Was this translation helpful? Give feedback.
-
Re: contributions guide ... no, not yet. I'll work on adding at least a skeleton pretty quickly, I guess. |
Beta Was this translation helpful? Give feedback.
-
I did a trial run of So ... I think the best time to apply this will be before making the Python2.7-compatible branch, so that it's easy to merge stuff between the there and master in future. I hope to get almost all the outstanding PRs merged in that same timeframe, so there will be a minimum of disruption if we blacken the code after that, and right before branching. |
Beta Was this translation helpful? Give feedback.
-
@da4089 Are we looking to add linters and formatters to this project?
If so, I'd be happy to raise a PR for the same. (Reference: Linter configs)
Suggestion:
Sourcery is a good tool to refactor python code and is free for open-source projects. Hence I think we should use it.
It is a good starting point to improve and optimise legacy code. (another PR)
Beta Was this translation helpful? Give feedback.
All reactions