diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9557a63..46c3ca7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: - id: end-of-file-fixer - repo: https://github.com/domdfcoding/pre-commit-hooks - rev: v0.4.0 + rev: v0.5.0 hooks: - id: requirements-txt-sorter args: @@ -80,7 +80,7 @@ repos: - id: snippet-fmt - repo: https://github.com/python-formate/formate - rev: v0.9.0 + rev: v1.1.2 hooks: - id: formate exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$ diff --git a/README.rst b/README.rst index 2d7563d..3bfa972 100644 --- a/README.rst +++ b/README.rst @@ -86,12 +86,12 @@ Enum Tools :target: https://pypi.org/project/enum_tools/ :alt: PyPI - Wheel -.. |conda-version| image:: https://img.shields.io/conda/v/conda-forge/enum_tools?logo=anaconda - :target: https://anaconda.org/conda-forge/enum_tools +.. |conda-version| image:: https://img.shields.io/conda/v/conda-forge/enum-tools?logo=anaconda + :target: https://anaconda.org/conda-forge/enum-tools :alt: Conda - Package Version -.. |conda-platform| image:: https://img.shields.io/conda/pn/conda-forge/enum_tools?label=conda%7Cplatform - :target: https://anaconda.org/conda-forge/enum_tools +.. |conda-platform| image:: https://img.shields.io/conda/pn/conda-forge/enum-tools?label=conda%7Cplatform + :target: https://anaconda.org/conda-forge/enum-tools :alt: Conda - Platform .. |license| image:: https://img.shields.io/github/license/domdfcoding/enum_tools @@ -139,13 +139,13 @@ To install with ``pip``: .. code-block:: bash - $ python -m pip install enum_tools + $ python -m pip install enum-tools To install with ``conda``: .. code-block:: bash - $ conda install -c conda-forge enum_tools + $ conda install -c conda-forge enum-tools .. end installation diff --git a/doc-source/index.rst b/doc-source/index.rst index 860536b..b95ac4e 100644 --- a/doc-source/index.rst +++ b/doc-source/index.rst @@ -99,12 +99,12 @@ Enum Tools :wheel: :alt: PyPI - Wheel - .. |conda-version| image:: https://img.shields.io/conda/v/conda-forge/enum_tools?logo=anaconda - :target: https://anaconda.org/conda-forge/enum_tools + .. |conda-version| image:: https://img.shields.io/conda/v/conda-forge/enum-tools?logo=anaconda + :target: https://anaconda.org/conda-forge/enum-tools :alt: Conda - Package Version - .. |conda-platform| image:: https://img.shields.io/conda/pn/conda-forge/enum_tools?label=conda%7Cplatform - :target: https://anaconda.org/conda-forge/enum_tools + .. |conda-platform| image:: https://img.shields.io/conda/pn/conda-forge/enum-tools?label=conda%7Cplatform + :target: https://anaconda.org/conda-forge/enum-tools :alt: Conda - Platform .. |license| github-shield:: @@ -156,8 +156,10 @@ Installation .. installation:: enum_tools :pypi: + :pypi-name: enum-tools :github: :anaconda: + :conda-name: enum-tools :conda-channels: conda-forge .. end installation diff --git a/formate.toml b/formate.toml index 1500be4..1489f36 100644 --- a/formate.toml +++ b/formate.toml @@ -5,6 +5,7 @@ reformat-generics = 40 noqa-reformat = 60 ellipsis-reformat = 70 squish_stubs = 80 +newline_after_equals = 90 [hooks.yapf] priority = 30