https://github.com/frequenz-floss/flake8-numbers
A flake8 plugin to make sure number literals use underscore to improve readability
https://github.com/frequenz-floss/flake8-numbers
flake8 flake8-plugin linter numbers plugin python underscore
Last synced: 11 months ago
JSON representation
A flake8 plugin to make sure number literals use underscore to improve readability
- Host: GitHub
- URL: https://github.com/frequenz-floss/flake8-numbers
- Owner: frequenz-floss
- License: mit
- Created: 2023-09-18T12:03:37.000Z (over 2 years ago)
- Default Branch: v0.x.x
- Last Pushed: 2025-04-15T08:40:38.000Z (11 months ago)
- Last Synced: 2025-04-15T09:27:13.464Z (11 months ago)
- Topics: flake8, flake8-plugin, linter, numbers, plugin, python, underscore
- Language: Python
- Homepage: https://frequenz-floss.github.io/flake8-numbers/
- Size: 1.16 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Flake8 Numbers Plugin
[](https://github.com/frequenz-floss/flake8-numbers/actions/workflows/ci.yaml)
[](https://pypi.org/project/flake8-numbers/)
[](https://frequenz-floss.github.io/flake8-numbers/)
## Introduction
Flake8 Numbers Plugin
This plugin ensures that large numbers of all bases are using digit seperators for improved readability.
Some examples of well written numeric literals are:
```python
good_float = 123_456_789.123_456_789
good_hex = 0xA_DEAD_BEEF
good_decimal = 10_000_000
good_binary = 0b1010_1010_1010
```
## Contributing
If you want to know how to build this project and contribute to it, please
check out the [Contributing Guide](CONTRIBUTING.md).