|19 days ago||3 days ago|
|MIT License||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.
Newbie here: blank spaces for better code readability?
4 projects | reddit.com/r/learnpython | 11 Jan 2022
Use a linter like pylama
Advice on training Python best practices
1 project | reddit.com/r/learnpython | 22 Nov 2021
Lint your code. I recommend pylama.
Code Quality Tools in Python
9 projects | dev.to | 9 Oct 2021
Linters analyze code to detect various categories of issues like logistical issue and stylistic issues. Some popular linters are Pylint, pycodestyle, Flake8 and Pylama.
apischema v0.17 - I've developed the fastest typed JSON (de)serialization library, and you can also build your GraphQL schema with it
8 projects | reddit.com/r/Python | 18 Jan 2022
Personally, I rely on static typing, and it rarely deceived me. I'm very impatient concerning https://github.com/python/mypy/issues/9773, which will allow finally to fully type apischema functions. Trends are evolving, TypeScript adoption is a good example.
Mypy: Using unions in mapping types does not work as expected
1 project | reddit.com/r/learnpython | 10 Jan 2022
If you typed it as Mapping instead of dict then it would be theoretically be type safe but its actually not supported. See mypy issue #1114. Only the value type is covariant for now.
How to Structure a Python AWS Serverless Project
4 projects | dev.to | 6 Jan 2022
There is a closed issue in the mypy repo with a discussion about this problem. The problem can be boiled down to this: mypy only understands Python packages and relationships between them, while our functions folder holds multiple discrete, parallel entry-points into the codebase that don't make sense when interpreted as a package. Contents of the functions directory, in other words, is a bit like a monorepo with multiple distinct projects located in separate directories, and mypy doesn't understand monorepos.
Python Type Hints – How to Handle Optional Imports – Adam Johnson
1 project | news.ycombinator.com | 4 Jan 2022
It looks like mypy considers this to be a bug:
What's the best practice to validate parameter types at runtime in Python, with and without a third-party module?
3 projects | reddit.com/r/learnpython | 26 Dec 2021
Although I urge you to use type annotations and a static type checker (such as mypy and pyright) over runtime type checks.
Comparison of Python TOML parser libraries
19 projects | dev.to | 14 Dec 2021
Do some developers hate python?
1 project | reddit.com/r/Python | 4 Dec 2021
Type hints help, but python's type system itself is still ass.
mypy alternatives - pytype and pyright
3 projects | 30 Oct 2021
How to fix mypy warning for this function
2 projects | reddit.com/r/learnpython | 26 Oct 2021
For your interest, this indeed was unintended behaviour on the part of `mypy`. It has since been fixed, apparently: https://github.com/python/mypy/pull/111532 projects | reddit.com/r/learnpython | 26 Oct 2021
Just created a bug report for this. https://github.com/python/mypy/issues/11390
What are some alternatives?
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.
Pylint - It's not just a linter that annoys you!
pyright - Static type checker for Python
prospector - Inspects Python source files and provides information about type and location of classes, methods etc
black - The uncompromising Python code formatter
PythonBuddy - 1st Online Python Editor With Live Syntax Checking and Execution
pyre-check - Performant type-checking for python.
typing - Python static typing home. Contains the source for typing_extensions and the documentation. Also hosts a user help forum.
bandit - Bandit is a tool designed to find common security issues in Python code.
mypyc - Compile type annotated Python to fast C extensions