frequenz-floss / flake8-numbers

A flake8 plugin to make sure number literals use underscore to improve readability

Home Page:https://frequenz-floss.github.io/flake8-numbers/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flake8 Numbers Plugin

Build Status PyPI Package Docs

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:

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.

About

A flake8 plugin to make sure number literals use underscore to improve readability

https://frequenz-floss.github.io/flake8-numbers/

License:MIT License


Languages

Language:Python 100.0%