An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Flake8 Numbers Plugin

[![Build Status](https://github.com/frequenz-floss/flake8-numbers/actions/workflows/ci.yaml/badge.svg)](https://github.com/frequenz-floss/flake8-numbers/actions/workflows/ci.yaml)
[![PyPI Package](https://img.shields.io/pypi/v/flake8-numbers)](https://pypi.org/project/flake8-numbers/)
[![Docs](https://img.shields.io/badge/docs-latest-informational)](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).