semvec/pypi-packages huggingface dataset:
ddt-is-number 0.0.3
A Python library to determine if something is a number.
Requires Python: >=3.6

is-number
=========

.. image:: https://img.shields.io/pypi/v/ddt-is-number
    :target: https://pypi.org/project/ddt-is-number/
    :alt: PyPI

.. image:: https://github.com/DirkdToit/ddt-is-number/actions/workflows/ci.yaml/badge.svg
    :target: https://github.com/DirkdToit/ddt-is-number/actions/workflows/ci.yaml
    :alt: GitHub Actions - CI

.. image:: https://github.com/DirkdToit/ddt-is-number/actions/workflows/pre-commit.yaml/badge.svg
    :target: https://github.com/DirkdToit/ddt-is-number/actions/workflows/pre-commit.yaml
    :alt: GitHub Actions - pre-commit

.. image:: https://img.shields.io/codecov/c/gh/DirkdToit/ddt-is-number
    :target: https://app.codecov.io/gh/DirkdToit/ddt-is-number
    :alt: Codecov

.. image:: https://img.shields.io/badge/FAQ-documentation-blue.svg
   :target: https://is-number.readthedocs.io/en/latest/faq.html
   :alt: Community FAQ

.. image:: https://img.shields.io/badge/Q&A-StackOverflow-orange.svg
   :target: https://stackoverflow.com/questions/tagged/python
   :alt: Q&A StackOverflow

.. image:: https://img.shields.io/badge/chat-gitter-green.svg
   :target: https://gitter.im/is-number/community
   :alt: Gitter chat

A Python library to determine if something is a number.

Installation
------------

.. code-block:: bash

   pip install ddt-is-number

Testing
-------

This project uses ``pytest`` to run tests and also to test docstring examples.

Install the test dependencies.

.. code-block:: bash

   $ pip install -r requirements_test.txt

Run the tests.

.. code-block:: bash

    $ pytest
    === 3 passed in 0.13 seconds ===

Developing
----------

This project uses ``black`` to format code and ``flake8`` for linting. We also support ``pre-commit`` to ensure
these have been run. To configure your local environment please install these development dependencies and set up
the commit hooks.

.. code-block:: bash

   $ pip install black flake8 pre-commit
   $ pre-commit install

Releasing
---------

Releases are published automatically when a tag is pushed to GitHub.

.. code-block:: bash

   # Set next version number
   export RELEASE=x.x.x

   # Create tags
   git commit --allow-empty -m "Release $RELEASE"
   git tag -a $RELEASE -m "Version $RELEASE"

   # Push
   git push upstream --tags