awesome-flake8-extensions
MonkeyType
awesome-flake8-extensions | MonkeyType | |
---|---|---|
4 | 9 | |
1,193 | 4,540 | |
- | 0.6% | |
6.4 | 5.4 | |
about 1 month ago | 17 days ago | |
Python | ||
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
awesome-flake8-extensions
-
A Tale of Two Kitchens - Hypermodernizing Your Python Code Base
Ultimately we want to test our code with Flake8 and plugins to enforce a more consistent code style and to encourage best practices. When you first introduce flake8 or a new plug-in commonly you have a lot of violations that you can silence with a #noqa comment. When you first introduce a new flake8 plugin, you will likely have a lot of violations, which you silence with #noqa comments. Over time these comments will become obsolete because you fixed the. yesqa will automatically remove these unnecessary #noqa comments.
-
Python toolkits
flake8 for linting along with following plugin (list of awesome plugin can be found here, but me and my teammates have selected the below one. Have linting but don't make it too hard.) flake8-black which uses black for code formatting check. flake8-isort which uses isort for separation of import in section and formatting them alphabetically. flake8-bandit which uses bandit for security linting. flake8-bugbear for finding likely bugs and design problems in your program. flake8-bugbear - Finding likely bugs and design problems in your program. pep8-naming for checking the PEP-8 naming conventions. mccabe for Ned’s script to check McCabe complexity flake8-comprehensions for writing better list/set/dict comprehensions.
-
Write better Python - with some help!
In addition to this out of the box -linting, there are loads of flake8 extensions that can help you with for example switching from .format() to using f-strings or checking that your naming follows the PEP8 guidelines. For example, adding flake8-length adds line length checking to the linting.
-
Standards to be aware of
And if you're using flake8, make sure to check out its plugins. Here's a good list: https://github.com/DmytroLitvinov/awesome-flake8-extensions
MonkeyType
-
Enhance Your Project Quality with These Top Python Libraries
MonkeyType collects runtime types of function arguments and return values, and can automatically generate stub files or add type annotations directly to your Python code based on the types collected at runtime.
-
A Tale of Two Kitchens - Hypermodernizing Your Python Code Base
To alleviate the burden of manual annotation, MonkeyType offers a clever solution. It dynamically observes the types entering and leaving functions during code execution. Based on this observation, it generates a preliminary draft of type annotations. This significantly reduces the effort needed to add type hints to legacy code.
- Do you know any library that automatically detects unused files / functions inside a project folder?
-
Programming Breakthroughs We Need
https://github.com/instagram/MonkeyType can perform the call logging, and can export a static typing file which is used by mypy, but also e.g. PyCharm. It doesn't expose such fine grained types, but you could build that based on the logged data.
-
Gradually introduce type checking to an existing typed codebase.
Which introduces MonkeyType, a python library that generatics static type annotations by collecting runtime types.
- Call me naive, but would it not be possible to create a tool for python the auto adds type hints at run time?
- Is there any language that is as similar as possible to Python in syntax, readability, and features, but is statically typed?
-
Typehole – Create TypeScript interfaces from JS runtime values automatically
Not sure if you're joking but there is something similar for python developed by a rather well known company https://github.com/Instagram/MonkeyType
- Cinder: Instagram's performance oriented fork of CPython
What are some alternatives?
black - The uncompromising Python code formatter
PythonBuddy - 1st Online Python Editor With Live Syntax Checking and Execution
Airflow - Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
unimport - :rocket: The ultimate linter and formatter for removing unused import statements in your code.
unimport - :rocket: The ultimate linter and formatter for removing unused import statements in your code. [Moved to: https://github.com/hakancelikdev/unimport]
Cinder - Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
pep8-naming - Naming Convention checker for Python
typehole - TypeScript development tool for Visual Studio Code that helps you automate creating the initial static typing for runtime values
pyre-check - Performant type-checking for python.
cinder - Cinder is Meta's internal performance-oriented production version of CPython.
flakes - list of flake8 plugins and their codes
plum - Multiple dispatch in Python