nitpick


Namenitpick JSON
Version 0.35.0 PyPI version JSON
download
home_pagehttps://github.com/andreoliwa/nitpick
SummaryEnforce the same settings across multiple language-independent projects
upload_time2023-12-31 16:40:31
maintainer
docs_urlNone
authorW. Augusto Andreoli
requires_python>=3.8,<4.0
licenseMIT
keywords flake8 linter python3 styleguide
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Nitpick
=======

|PyPI|
|Supported Python versions|
|GitHub Actions Python Workflow|
|Documentation Status|
|Coveralls|
|Maintainability|
|Test Coverage|
|pre-commit|
|pre-commit.ci status|
|Project License|
|Code style: black|
|Renovate|
|semantic-release|
|FOSSA Status|

Command-line tool and `flake8 <https://github.com/PyCQA/flake8>`_
plugin to enforce the same settings across multiple language-independent
projects.

Useful if you maintain multiple projects and are tired of
copying/pasting the same INI/TOML/YAML/JSON keys and values over and
over, in all of them.

The CLI now has a ``nitpick fix`` command that modifies configuration
files directly (pretty much like
`black <https://github.com/psf/black>`_ and
`isort <https://github.com/PyCQA/isort>`_ do with Python files).
See the `CLI docs for more
info <https://nitpick.rtfd.io/en/latest/cli.html>`_.

Many more features are planned for the future, check `the
roadmap <https://github.com/andreoliwa/nitpick/projects/1>`_.

The style file
--------------

A "Nitpick code style" is a `TOML <https://github.com/toml-lang/toml>`_
file with the settings that should be present in config files from other
tools.

Example of a style:

.. code-block:: toml

    ["pyproject.toml".tool.black]
    line-length = 120

    ["pyproject.toml".tool.poetry.dev-dependencies]
    pylint = "*"

    ["setup.cfg".flake8]
    ignore = "D107,D202,D203,D401"
    max-line-length = 120
    inline-quotes = "double"

    ["setup.cfg".isort]
    line_length = 120
    multi_line_output = 3
    include_trailing_comma = true
    force_grid_wrap = 0
    combine_as_imports = true

This style will assert that:

-  ... `black <https://github.com/psf/black>`_,
   `isort <https://github.com/PyCQA/isort>`_ and
   `flake8 <https://github.com/PyCQA/flake8>`_ have a line length of
   120;
-  ... `flake8 <https://github.com/PyCQA/flake8>`_ and
   `isort <https://github.com/PyCQA/isort>`_ are configured as above in
   ``setup.cfg``;
-  ... `Pylint <https://www.pylint.org>`__ is present as a
   `Poetry <https://github.com/python-poetry/poetry>`_ dev dependency
   in ``pyproject.toml``.

Supported file types
--------------------

These are the file types currently handled by Nitpick.

-  Some files are only being checked and have to be modified manually;
-  Some files can already be fixed automatically (with the
   ``nitpick fix`` command);
-  Others are still under construction; the ticket numbers are shown in
   the table (upvote the ticket with 👍🏻 if you would like to prioritise
   development).

Implemented
~~~~~~~~~~~

.. auto-generated-start-implemented
.. list-table::
   :header-rows: 1

   * - File type
     - ``nitpick check``
     - ``nitpick fix``
   * - `Any INI file <https://nitpick.rtfd.io/en/latest/plugins.html#ini-files>`_
     - ✅
     - ✅
   * - `Any JSON file <https://nitpick.rtfd.io/en/latest/plugins.html#json-files>`_
     - ✅
     - ✅
   * - `Any plain text file <https://nitpick.rtfd.io/en/latest/plugins.html#text-files>`_
     - ✅
     - ❌
   * - `Any TOML file <https://nitpick.rtfd.io/en/latest/plugins.html#toml-files>`_
     - ✅
     - ✅
   * - `Any YAML file <https://nitpick.rtfd.io/en/latest/plugins.html#yaml-files>`_
     - ✅
     - ✅
   * - `.editorconfig <https://nitpick.rtfd.io/en/latest/library.html#any>`_
     - ✅
     - ✅
   * - `.pylintrc <https://nitpick.rtfd.io/en/latest/plugins.html#ini-files>`_
     - ✅
     - ✅
   * - `setup.cfg <https://nitpick.rtfd.io/en/latest/plugins.html#ini-files>`_
     - ✅
     - ✅
.. auto-generated-end-implemented

Planned
~~~~~~~

.. auto-generated-start-planned
.. list-table::
   :header-rows: 1

   * - File type
     - ``nitpick check``
     - ``nitpick fix``
   * - Any Markdown file
     - `#280 <https://github.com/andreoliwa/nitpick/issues/280>`_ 🚧
     - ❓
   * - Any Terraform file
     - `#318 <https://github.com/andreoliwa/nitpick/issues/318>`_ 🚧
     - ❓
   * - Dockerfile
     - `#272 <https://github.com/andreoliwa/nitpick/issues/272>`_ 🚧
     - `#272 <https://github.com/andreoliwa/nitpick/issues/272>`_ 🚧
   * - .dockerignore
     - `#8 <https://github.com/andreoliwa/nitpick/issues/8>`_ 🚧
     - `#8 <https://github.com/andreoliwa/nitpick/issues/8>`_ 🚧
   * - .gitignore
     - `#8 <https://github.com/andreoliwa/nitpick/issues/8>`_ 🚧
     - `#8 <https://github.com/andreoliwa/nitpick/issues/8>`_ 🚧
   * - Jenkinsfile
     - `#278 <https://github.com/andreoliwa/nitpick/issues/278>`_ 🚧
     - ❓
   * - Makefile
     - `#277 <https://github.com/andreoliwa/nitpick/issues/277>`_ 🚧
     - ❓
.. auto-generated-end-planned

Style Library (Presets)
-----------------------

Nitpick has a builtin library of style presets, shipped as `Python resources <https://docs.python.org/3/library/importlib.html#module-importlib.resources>`_.

This library contains building blocks for your your custom style.
Just choose styles from the table below and create your own style, like LEGO.

Read how to:

- `...add multiple styles to the configuration file <https://nitpick.readthedocs.io/en/latest/configuration.html#multiple-styles>`_;
- `...include styles inside a style <https://nitpick.readthedocs.io/en/latest/nitpick_section.html#nitpick-styles>`_.

.. auto-generated-start-style-library

any
~~~

.. list-table::
   :header-rows: 1

   * - Style URL
     - Description
   * - `py://nitpick/resources/any/codeclimate <src/nitpick/resources/any/codeclimate.toml>`_
     - `CodeClimate <https://codeclimate.com/>`_
   * - `py://nitpick/resources/any/commitizen <src/nitpick/resources/any/commitizen.toml>`_
     - `Commitizen (Python) <https://github.com/commitizen-tools/commitizen>`_
   * - `py://nitpick/resources/any/commitlint <src/nitpick/resources/any/commitlint.toml>`_
     - `commitlint <https://github.com/conventional-changelog/commitlint>`_
   * - `py://nitpick/resources/any/editorconfig <src/nitpick/resources/any/editorconfig.toml>`_
     - `EditorConfig <https://editorconfig.org/>`_
   * - `py://nitpick/resources/any/git-legal <src/nitpick/resources/any/git-legal.toml>`_
     - `Git.legal - CodeClimate Community Edition <https://github.com/kmewhort/git.legal-codeclimate>`_
   * - `py://nitpick/resources/any/pre-commit-hooks <src/nitpick/resources/any/pre-commit-hooks.toml>`_
     - `pre-commit hooks for any project <https://github.com/pre-commit/pre-commit-hooks>`_
   * - `py://nitpick/resources/any/prettier <src/nitpick/resources/any/prettier.toml>`_
     - `Prettier <https://github.com/prettier/prettier>`_

javascript
~~~~~~~~~~

.. list-table::
   :header-rows: 1

   * - Style URL
     - Description
   * - `py://nitpick/resources/javascript/package-json <src/nitpick/resources/javascript/package-json.toml>`_
     - `package.json <https://github.com/yarnpkg/website/blob/master/lang/en/docs/package-json.md>`_

kotlin
~~~~~~

.. list-table::
   :header-rows: 1

   * - Style URL
     - Description
   * - `py://nitpick/resources/kotlin/ktlint <src/nitpick/resources/kotlin/ktlint.toml>`_
     - `ktlint <https://github.com/pinterest/ktlint>`_

markdown
~~~~~~~~

.. list-table::
   :header-rows: 1

   * - Style URL
     - Description
   * - `py://nitpick/resources/markdown/markdownlint <src/nitpick/resources/markdown/markdownlint.toml>`_
     - `Markdown lint <https://github.com/markdownlint/markdownlint>`_

presets
~~~~~~~

.. list-table::
   :header-rows: 1

   * - Style URL
     - Description
   * - `py://nitpick/resources/presets/nitpick <src/nitpick/resources/presets/nitpick.toml>`_
     - `Default style file for Nitpick <https://nitpick.rtfd.io/>`_

proto
~~~~~

.. list-table::
   :header-rows: 1

   * - Style URL
     - Description
   * - `py://nitpick/resources/proto/protolint <src/nitpick/resources/proto/protolint.toml>`_
     - `protolint (Protobuf linter) <https://github.com/yoheimuta/protolint>`_

python
~~~~~~

.. list-table::
   :header-rows: 1

   * - Style URL
     - Description
   * - `py://nitpick/resources/python/310 <src/nitpick/resources/python/310.toml>`_
     - Python 3.10
   * - `py://nitpick/resources/python/311 <src/nitpick/resources/python/311.toml>`_
     - Python 3.11
   * - `py://nitpick/resources/python/312 <src/nitpick/resources/python/312.toml>`_
     - Python 3.12
   * - `py://nitpick/resources/python/38 <src/nitpick/resources/python/38.toml>`_
     - Python 3.8
   * - `py://nitpick/resources/python/39 <src/nitpick/resources/python/39.toml>`_
     - Python 3.9
   * - `py://nitpick/resources/python/absent <src/nitpick/resources/python/absent.toml>`_
     - Files that should not exist
   * - `py://nitpick/resources/python/autoflake <src/nitpick/resources/python/autoflake.toml>`_
     - `autoflake <https://github.com/myint/autoflake>`_
   * - `py://nitpick/resources/python/bandit <src/nitpick/resources/python/bandit.toml>`_
     - `Bandit <https://github.com/PyCQA/bandit>`_
   * - `py://nitpick/resources/python/black <src/nitpick/resources/python/black.toml>`_
     - `Black <https://github.com/psf/black>`_
   * - `py://nitpick/resources/python/flake8 <src/nitpick/resources/python/flake8.toml>`_
     - `Flake8 <https://github.com/PyCQA/flake8>`_
   * - `py://nitpick/resources/python/github-workflow <src/nitpick/resources/python/github-workflow.toml>`_
     - `GitHub Workflow for Python <https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions>`_
   * - `py://nitpick/resources/python/ipython <src/nitpick/resources/python/ipython.toml>`_
     - `IPython <https://github.com/ipython/ipython>`_
   * - `py://nitpick/resources/python/isort <src/nitpick/resources/python/isort.toml>`_
     - `isort <https://github.com/PyCQA/isort>`_
   * - `py://nitpick/resources/python/mypy <src/nitpick/resources/python/mypy.toml>`_
     - `Mypy <https://github.com/python/mypy>`_
   * - `py://nitpick/resources/python/poetry-editable <src/nitpick/resources/python/poetry-editable.toml>`_
     - `Poetry (editable projects; PEP 600 support) <https://github.com/python-poetry/poetry>`_
   * - `py://nitpick/resources/python/poetry-venv <src/nitpick/resources/python/poetry-venv.toml>`_
     - `Poetry (virtualenv in project) <https://github.com/python-poetry/poetry>`_
   * - `py://nitpick/resources/python/poetry <src/nitpick/resources/python/poetry.toml>`_
     - `Poetry <https://github.com/python-poetry/poetry>`_
   * - `py://nitpick/resources/python/pre-commit-hooks <src/nitpick/resources/python/pre-commit-hooks.toml>`_
     - `pre-commit hooks for Python projects <https://pre-commit.com/hooks>`_
   * - `py://nitpick/resources/python/pylint <src/nitpick/resources/python/pylint.toml>`_
     - `Pylint <https://github.com/PyCQA/pylint>`_
   * - `py://nitpick/resources/python/radon <src/nitpick/resources/python/radon.toml>`_
     - `Radon <https://github.com/rubik/radon>`_
   * - `py://nitpick/resources/python/readthedocs <src/nitpick/resources/python/readthedocs.toml>`_
     - `Read the Docs <https://github.com/readthedocs/readthedocs.org>`_
   * - `py://nitpick/resources/python/sonar-python <src/nitpick/resources/python/sonar-python.toml>`_
     - `SonarQube Python plugin <https://github.com/SonarSource/sonar-python>`_
   * - `py://nitpick/resources/python/tox <src/nitpick/resources/python/tox.toml>`_
     - `tox <https://github.com/tox-dev/tox>`_

shell
~~~~~

.. list-table::
   :header-rows: 1

   * - Style URL
     - Description
   * - `py://nitpick/resources/shell/bashate <src/nitpick/resources/shell/bashate.toml>`_
     - `bashate (code style for Bash) <https://github.com/openstack/bashate>`_
   * - `py://nitpick/resources/shell/shellcheck <src/nitpick/resources/shell/shellcheck.toml>`_
     - `ShellCheck (static analysis for shell scripts) <https://github.com/koalaman/shellcheck>`_
   * - `py://nitpick/resources/shell/shfmt <src/nitpick/resources/shell/shfmt.toml>`_
     - `shfmt (shell script formatter) <https://github.com/mvdan/sh>`_

toml
~~~~

.. list-table::
   :header-rows: 1

   * - Style URL
     - Description
   * - `py://nitpick/resources/toml/toml-sort <src/nitpick/resources/toml/toml-sort.toml>`_
     - `TOML sort <https://github.com/pappasam/toml-sort>`_
.. auto-generated-end-style-library

Quickstart
----------

Install
~~~~~~~

Install in an isolated global environment with
`pipx <https://github.com/pipxproject/pipx>`_::

    # Latest PyPI release
    pipx install nitpick

    # Development branch from GitHub
    pipx install git+https://github.com/andreoliwa/nitpick

On macOS/Linux, install with
`Homebrew <https://github.com/Homebrew/brew>`_::

    # Latest PyPI release
    brew install andreoliwa/formulae/nitpick

    # Development branch from GitHub
    brew install andreoliwa/formulae/nitpick --HEAD

On Arch Linux, install with yay::

    yay -Syu nitpick

Add to your project with
`Poetry <https://github.com/python-poetry/poetry>`_::

    poetry add --dev nitpick

Or install it with pip::

    pip install -U nitpick

Run
~~~

Nitpick_ will fail if no style is explicitly configured.
Run this command to download and use the opinionated `default style file <nitpick-style.toml>`:

    nitpick init

You can use it as a template to `configure-your-own-style`.

To fix and modify your files directly::

    nitpick fix

To check for errors only::

    nitpick check

Nitpick is also a flake8_ plugin, so you can run this on a project with at least one Python (``.py``) file::

    flake8 .

Run as a pre-commit hook
~~~~~~~~~~~~~~~~~~~~~~~~

If you use `pre-commit <https://pre-commit.com/>`_ on your project, add
this to the ``.pre-commit-config.yaml`` in your repository::

    repos:
      - repo: https://github.com/andreoliwa/nitpick
        rev: v0.35.0
        hooks:
          - id: nitpick

There are 3 available hook IDs:

- ``nitpick`` and ``nitpick-fix`` both run the ``nitpick fix`` command;
- ``nitpick-check`` runs ``nitpick check``.

If you want to run Nitpick as a flake8 plugin instead::

    repos:
      - repo: https://github.com/PyCQA/flake8
        rev: 4.0.1
        hooks:
          - id: flake8
            additional_dependencies: [nitpick]

Run as a MegaLinter plugin
~~~~~~~~~~~~~~~~~~~~~~~~~~

If you use `MegaLinter <https://megalinter.github.io/>`_ you can run Nitpick as a plugin. Add the following two entries to your ``.mega-linter.yml`` configuration file:

.. code-block:: yaml

    PLUGINS:
      - https://raw.githubusercontent.com/andreoliwa/nitpick/v0.35.0/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml
    ENABLE_LINTERS:
      - NITPICK


More information
----------------

Nitpick is being used by projects such as:

-  `wemake-services/wemake-python-styleguide <https://github.com/wemake-services/wemake-python-styleguide>`_
-  `dry-python/returns <https://github.com/dry-python/returns>`_
-  `sobolevn/django-split-settings <https://github.com/sobolevn/django-split-settings>`_
-  `catalyst-team/catalyst <https://github.com/catalyst-team/catalyst>`_
-  `alan-turing-institute/AutSPACEs <https://github.com/alan-turing-institute/AutSPACEs>`_
-  `pytest-dev/pytest-mimesis <https://github.com/pytest-dev/pytest-mimesis>`_

For more details on styles and which configuration files are currently
supported, `see the full documentation <https://nitpick.rtfd.io/>`_.

.. |PyPI| image:: https://img.shields.io/pypi/v/nitpick.svg
   :target: https://pypi.org/project/nitpick
.. |GitHub Actions Python Workflow| image:: https://github.com/andreoliwa/nitpick/workflows/Python/badge.svg
.. |Documentation Status| image:: https://readthedocs.org/projects/nitpick/badge/?version=latest
   :target: https://nitpick.rtfd.io/en/latest/?badge=latest
.. |Coveralls| image:: https://coveralls.io/repos/github/andreoliwa/nitpick/badge.svg
   :target: https://coveralls.io/github/andreoliwa/nitpick
.. |Maintainability| image:: https://api.codeclimate.com/v1/badges/61e0cdc48e24e76a0460/maintainability
   :target: https://codeclimate.com/github/andreoliwa/nitpick
.. |Test Coverage| image:: https://api.codeclimate.com/v1/badges/61e0cdc48e24e76a0460/test_coverage
   :target: https://codeclimate.com/github/andreoliwa/nitpick
.. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/nitpick.svg
   :target: https://pypi.org/project/nitpick/
.. |Project License| image:: https://img.shields.io/pypi/l/nitpick.svg
   :target: https://pypi.org/project/nitpick/
.. |Code style: black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black
.. |Renovate| image:: https://img.shields.io/badge/renovate-enabled-brightgreen.svg
   :target: https://renovatebot.com/
.. |semantic-release| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
   :target: https://github.com/semantic-release/semantic-release
.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
   :target: https://github.com/pre-commit/pre-commit
   :alt: pre-commit
.. |pre-commit.ci status| image:: https://results.pre-commit.ci/badge/github/andreoliwa/nitpick/develop.svg
   :target: https://results.pre-commit.ci/latest/github/andreoliwa/nitpick/develop
.. |FOSSA Status| image:: https://app.fossa.com/api/projects/git%2Bgithub.com%2Fandreoliwa%2Fnitpick.svg?type=shield
   :target: https://app.fossa.com/projects/git%2Bgithub.com%2Fandreoliwa%2Fnitpick?ref=badge_shield

Contributing
------------

Your help is very much appreciated.

There are many possibilities for new features in this project, and not enough time or hands to work on them.

If you want to contribute with the project, set up your development environment following the steps on the `contribution guidelines <https://nitpick.rtfd.io/en/latest/contributing.html>`_ and send your pull request.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/andreoliwa/nitpick",
    "name": "nitpick",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "flake8,linter,python3,styleguide",
    "author": "W. Augusto Andreoli",
    "author_email": "andreoliwa@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/eb/1d/dce7b9967812de3964c0258d52324669573e81ead7337f016a202b121354/nitpick-0.35.0.tar.gz",
    "platform": null,
    "description": "Nitpick\n=======\n\n|PyPI|\n|Supported Python versions|\n|GitHub Actions Python Workflow|\n|Documentation Status|\n|Coveralls|\n|Maintainability|\n|Test Coverage|\n|pre-commit|\n|pre-commit.ci status|\n|Project License|\n|Code style: black|\n|Renovate|\n|semantic-release|\n|FOSSA Status|\n\nCommand-line tool and `flake8 <https://github.com/PyCQA/flake8>`_\nplugin to enforce the same settings across multiple language-independent\nprojects.\n\nUseful if you maintain multiple projects and are tired of\ncopying/pasting the same INI/TOML/YAML/JSON keys and values over and\nover, in all of them.\n\nThe CLI now has a ``nitpick fix`` command that modifies configuration\nfiles directly (pretty much like\n`black <https://github.com/psf/black>`_ and\n`isort <https://github.com/PyCQA/isort>`_ do with Python files).\nSee the `CLI docs for more\ninfo <https://nitpick.rtfd.io/en/latest/cli.html>`_.\n\nMany more features are planned for the future, check `the\nroadmap <https://github.com/andreoliwa/nitpick/projects/1>`_.\n\nThe style file\n--------------\n\nA \"Nitpick code style\" is a `TOML <https://github.com/toml-lang/toml>`_\nfile with the settings that should be present in config files from other\ntools.\n\nExample of a style:\n\n.. code-block:: toml\n\n    [\"pyproject.toml\".tool.black]\n    line-length = 120\n\n    [\"pyproject.toml\".tool.poetry.dev-dependencies]\n    pylint = \"*\"\n\n    [\"setup.cfg\".flake8]\n    ignore = \"D107,D202,D203,D401\"\n    max-line-length = 120\n    inline-quotes = \"double\"\n\n    [\"setup.cfg\".isort]\n    line_length = 120\n    multi_line_output = 3\n    include_trailing_comma = true\n    force_grid_wrap = 0\n    combine_as_imports = true\n\nThis style will assert that:\n\n-  ... `black <https://github.com/psf/black>`_,\n   `isort <https://github.com/PyCQA/isort>`_ and\n   `flake8 <https://github.com/PyCQA/flake8>`_ have a line length of\n   120;\n-  ... `flake8 <https://github.com/PyCQA/flake8>`_ and\n   `isort <https://github.com/PyCQA/isort>`_ are configured as above in\n   ``setup.cfg``;\n-  ... `Pylint <https://www.pylint.org>`__ is present as a\n   `Poetry <https://github.com/python-poetry/poetry>`_ dev dependency\n   in ``pyproject.toml``.\n\nSupported file types\n--------------------\n\nThese are the file types currently handled by Nitpick.\n\n-  Some files are only being checked and have to be modified manually;\n-  Some files can already be fixed automatically (with the\n   ``nitpick fix`` command);\n-  Others are still under construction; the ticket numbers are shown in\n   the table (upvote the ticket with \ud83d\udc4d\ud83c\udffb if you would like to prioritise\n   development).\n\nImplemented\n~~~~~~~~~~~\n\n.. auto-generated-start-implemented\n.. list-table::\n   :header-rows: 1\n\n   * - File type\n     - ``nitpick check``\n     - ``nitpick fix``\n   * - `Any INI file <https://nitpick.rtfd.io/en/latest/plugins.html#ini-files>`_\n     - \u2705\n     - \u2705\n   * - `Any JSON file <https://nitpick.rtfd.io/en/latest/plugins.html#json-files>`_\n     - \u2705\n     - \u2705\n   * - `Any plain text file <https://nitpick.rtfd.io/en/latest/plugins.html#text-files>`_\n     - \u2705\n     - \u274c\n   * - `Any TOML file <https://nitpick.rtfd.io/en/latest/plugins.html#toml-files>`_\n     - \u2705\n     - \u2705\n   * - `Any YAML file <https://nitpick.rtfd.io/en/latest/plugins.html#yaml-files>`_\n     - \u2705\n     - \u2705\n   * - `.editorconfig <https://nitpick.rtfd.io/en/latest/library.html#any>`_\n     - \u2705\n     - \u2705\n   * - `.pylintrc <https://nitpick.rtfd.io/en/latest/plugins.html#ini-files>`_\n     - \u2705\n     - \u2705\n   * - `setup.cfg <https://nitpick.rtfd.io/en/latest/plugins.html#ini-files>`_\n     - \u2705\n     - \u2705\n.. auto-generated-end-implemented\n\nPlanned\n~~~~~~~\n\n.. auto-generated-start-planned\n.. list-table::\n   :header-rows: 1\n\n   * - File type\n     - ``nitpick check``\n     - ``nitpick fix``\n   * - Any Markdown file\n     - `#280 <https://github.com/andreoliwa/nitpick/issues/280>`_ \ud83d\udea7\n     - \u2753\n   * - Any Terraform file\n     - `#318 <https://github.com/andreoliwa/nitpick/issues/318>`_ \ud83d\udea7\n     - \u2753\n   * - Dockerfile\n     - `#272 <https://github.com/andreoliwa/nitpick/issues/272>`_ \ud83d\udea7\n     - `#272 <https://github.com/andreoliwa/nitpick/issues/272>`_ \ud83d\udea7\n   * - .dockerignore\n     - `#8 <https://github.com/andreoliwa/nitpick/issues/8>`_ \ud83d\udea7\n     - `#8 <https://github.com/andreoliwa/nitpick/issues/8>`_ \ud83d\udea7\n   * - .gitignore\n     - `#8 <https://github.com/andreoliwa/nitpick/issues/8>`_ \ud83d\udea7\n     - `#8 <https://github.com/andreoliwa/nitpick/issues/8>`_ \ud83d\udea7\n   * - Jenkinsfile\n     - `#278 <https://github.com/andreoliwa/nitpick/issues/278>`_ \ud83d\udea7\n     - \u2753\n   * - Makefile\n     - `#277 <https://github.com/andreoliwa/nitpick/issues/277>`_ \ud83d\udea7\n     - \u2753\n.. auto-generated-end-planned\n\nStyle Library (Presets)\n-----------------------\n\nNitpick has a builtin library of style presets, shipped as `Python resources <https://docs.python.org/3/library/importlib.html#module-importlib.resources>`_.\n\nThis library contains building blocks for your your custom style.\nJust choose styles from the table below and create your own style, like LEGO.\n\nRead how to:\n\n- `...add multiple styles to the configuration file <https://nitpick.readthedocs.io/en/latest/configuration.html#multiple-styles>`_;\n- `...include styles inside a style <https://nitpick.readthedocs.io/en/latest/nitpick_section.html#nitpick-styles>`_.\n\n.. auto-generated-start-style-library\n\nany\n~~~\n\n.. list-table::\n   :header-rows: 1\n\n   * - Style URL\n     - Description\n   * - `py://nitpick/resources/any/codeclimate <src/nitpick/resources/any/codeclimate.toml>`_\n     - `CodeClimate <https://codeclimate.com/>`_\n   * - `py://nitpick/resources/any/commitizen <src/nitpick/resources/any/commitizen.toml>`_\n     - `Commitizen (Python) <https://github.com/commitizen-tools/commitizen>`_\n   * - `py://nitpick/resources/any/commitlint <src/nitpick/resources/any/commitlint.toml>`_\n     - `commitlint <https://github.com/conventional-changelog/commitlint>`_\n   * - `py://nitpick/resources/any/editorconfig <src/nitpick/resources/any/editorconfig.toml>`_\n     - `EditorConfig <https://editorconfig.org/>`_\n   * - `py://nitpick/resources/any/git-legal <src/nitpick/resources/any/git-legal.toml>`_\n     - `Git.legal - CodeClimate Community Edition <https://github.com/kmewhort/git.legal-codeclimate>`_\n   * - `py://nitpick/resources/any/pre-commit-hooks <src/nitpick/resources/any/pre-commit-hooks.toml>`_\n     - `pre-commit hooks for any project <https://github.com/pre-commit/pre-commit-hooks>`_\n   * - `py://nitpick/resources/any/prettier <src/nitpick/resources/any/prettier.toml>`_\n     - `Prettier <https://github.com/prettier/prettier>`_\n\njavascript\n~~~~~~~~~~\n\n.. list-table::\n   :header-rows: 1\n\n   * - Style URL\n     - Description\n   * - `py://nitpick/resources/javascript/package-json <src/nitpick/resources/javascript/package-json.toml>`_\n     - `package.json <https://github.com/yarnpkg/website/blob/master/lang/en/docs/package-json.md>`_\n\nkotlin\n~~~~~~\n\n.. list-table::\n   :header-rows: 1\n\n   * - Style URL\n     - Description\n   * - `py://nitpick/resources/kotlin/ktlint <src/nitpick/resources/kotlin/ktlint.toml>`_\n     - `ktlint <https://github.com/pinterest/ktlint>`_\n\nmarkdown\n~~~~~~~~\n\n.. list-table::\n   :header-rows: 1\n\n   * - Style URL\n     - Description\n   * - `py://nitpick/resources/markdown/markdownlint <src/nitpick/resources/markdown/markdownlint.toml>`_\n     - `Markdown lint <https://github.com/markdownlint/markdownlint>`_\n\npresets\n~~~~~~~\n\n.. list-table::\n   :header-rows: 1\n\n   * - Style URL\n     - Description\n   * - `py://nitpick/resources/presets/nitpick <src/nitpick/resources/presets/nitpick.toml>`_\n     - `Default style file for Nitpick <https://nitpick.rtfd.io/>`_\n\nproto\n~~~~~\n\n.. list-table::\n   :header-rows: 1\n\n   * - Style URL\n     - Description\n   * - `py://nitpick/resources/proto/protolint <src/nitpick/resources/proto/protolint.toml>`_\n     - `protolint (Protobuf linter) <https://github.com/yoheimuta/protolint>`_\n\npython\n~~~~~~\n\n.. list-table::\n   :header-rows: 1\n\n   * - Style URL\n     - Description\n   * - `py://nitpick/resources/python/310 <src/nitpick/resources/python/310.toml>`_\n     - Python 3.10\n   * - `py://nitpick/resources/python/311 <src/nitpick/resources/python/311.toml>`_\n     - Python 3.11\n   * - `py://nitpick/resources/python/312 <src/nitpick/resources/python/312.toml>`_\n     - Python 3.12\n   * - `py://nitpick/resources/python/38 <src/nitpick/resources/python/38.toml>`_\n     - Python 3.8\n   * - `py://nitpick/resources/python/39 <src/nitpick/resources/python/39.toml>`_\n     - Python 3.9\n   * - `py://nitpick/resources/python/absent <src/nitpick/resources/python/absent.toml>`_\n     - Files that should not exist\n   * - `py://nitpick/resources/python/autoflake <src/nitpick/resources/python/autoflake.toml>`_\n     - `autoflake <https://github.com/myint/autoflake>`_\n   * - `py://nitpick/resources/python/bandit <src/nitpick/resources/python/bandit.toml>`_\n     - `Bandit <https://github.com/PyCQA/bandit>`_\n   * - `py://nitpick/resources/python/black <src/nitpick/resources/python/black.toml>`_\n     - `Black <https://github.com/psf/black>`_\n   * - `py://nitpick/resources/python/flake8 <src/nitpick/resources/python/flake8.toml>`_\n     - `Flake8 <https://github.com/PyCQA/flake8>`_\n   * - `py://nitpick/resources/python/github-workflow <src/nitpick/resources/python/github-workflow.toml>`_\n     - `GitHub Workflow for Python <https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions>`_\n   * - `py://nitpick/resources/python/ipython <src/nitpick/resources/python/ipython.toml>`_\n     - `IPython <https://github.com/ipython/ipython>`_\n   * - `py://nitpick/resources/python/isort <src/nitpick/resources/python/isort.toml>`_\n     - `isort <https://github.com/PyCQA/isort>`_\n   * - `py://nitpick/resources/python/mypy <src/nitpick/resources/python/mypy.toml>`_\n     - `Mypy <https://github.com/python/mypy>`_\n   * - `py://nitpick/resources/python/poetry-editable <src/nitpick/resources/python/poetry-editable.toml>`_\n     - `Poetry (editable projects; PEP 600 support) <https://github.com/python-poetry/poetry>`_\n   * - `py://nitpick/resources/python/poetry-venv <src/nitpick/resources/python/poetry-venv.toml>`_\n     - `Poetry (virtualenv in project) <https://github.com/python-poetry/poetry>`_\n   * - `py://nitpick/resources/python/poetry <src/nitpick/resources/python/poetry.toml>`_\n     - `Poetry <https://github.com/python-poetry/poetry>`_\n   * - `py://nitpick/resources/python/pre-commit-hooks <src/nitpick/resources/python/pre-commit-hooks.toml>`_\n     - `pre-commit hooks for Python projects <https://pre-commit.com/hooks>`_\n   * - `py://nitpick/resources/python/pylint <src/nitpick/resources/python/pylint.toml>`_\n     - `Pylint <https://github.com/PyCQA/pylint>`_\n   * - `py://nitpick/resources/python/radon <src/nitpick/resources/python/radon.toml>`_\n     - `Radon <https://github.com/rubik/radon>`_\n   * - `py://nitpick/resources/python/readthedocs <src/nitpick/resources/python/readthedocs.toml>`_\n     - `Read the Docs <https://github.com/readthedocs/readthedocs.org>`_\n   * - `py://nitpick/resources/python/sonar-python <src/nitpick/resources/python/sonar-python.toml>`_\n     - `SonarQube Python plugin <https://github.com/SonarSource/sonar-python>`_\n   * - `py://nitpick/resources/python/tox <src/nitpick/resources/python/tox.toml>`_\n     - `tox <https://github.com/tox-dev/tox>`_\n\nshell\n~~~~~\n\n.. list-table::\n   :header-rows: 1\n\n   * - Style URL\n     - Description\n   * - `py://nitpick/resources/shell/bashate <src/nitpick/resources/shell/bashate.toml>`_\n     - `bashate (code style for Bash) <https://github.com/openstack/bashate>`_\n   * - `py://nitpick/resources/shell/shellcheck <src/nitpick/resources/shell/shellcheck.toml>`_\n     - `ShellCheck (static analysis for shell scripts) <https://github.com/koalaman/shellcheck>`_\n   * - `py://nitpick/resources/shell/shfmt <src/nitpick/resources/shell/shfmt.toml>`_\n     - `shfmt (shell script formatter) <https://github.com/mvdan/sh>`_\n\ntoml\n~~~~\n\n.. list-table::\n   :header-rows: 1\n\n   * - Style URL\n     - Description\n   * - `py://nitpick/resources/toml/toml-sort <src/nitpick/resources/toml/toml-sort.toml>`_\n     - `TOML sort <https://github.com/pappasam/toml-sort>`_\n.. auto-generated-end-style-library\n\nQuickstart\n----------\n\nInstall\n~~~~~~~\n\nInstall in an isolated global environment with\n`pipx <https://github.com/pipxproject/pipx>`_::\n\n    # Latest PyPI release\n    pipx install nitpick\n\n    # Development branch from GitHub\n    pipx install git+https://github.com/andreoliwa/nitpick\n\nOn macOS/Linux, install with\n`Homebrew <https://github.com/Homebrew/brew>`_::\n\n    # Latest PyPI release\n    brew install andreoliwa/formulae/nitpick\n\n    # Development branch from GitHub\n    brew install andreoliwa/formulae/nitpick --HEAD\n\nOn Arch Linux, install with yay::\n\n    yay -Syu nitpick\n\nAdd to your project with\n`Poetry <https://github.com/python-poetry/poetry>`_::\n\n    poetry add --dev nitpick\n\nOr install it with pip::\n\n    pip install -U nitpick\n\nRun\n~~~\n\nNitpick_ will fail if no style is explicitly configured.\nRun this command to download and use the opinionated `default style file <nitpick-style.toml>`:\n\n    nitpick init\n\nYou can use it as a template to `configure-your-own-style`.\n\nTo fix and modify your files directly::\n\n    nitpick fix\n\nTo check for errors only::\n\n    nitpick check\n\nNitpick is also a flake8_ plugin, so you can run this on a project with at least one Python (``.py``) file::\n\n    flake8 .\n\nRun as a pre-commit hook\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nIf you use `pre-commit <https://pre-commit.com/>`_ on your project, add\nthis to the ``.pre-commit-config.yaml`` in your repository::\n\n    repos:\n      - repo: https://github.com/andreoliwa/nitpick\n        rev: v0.35.0\n        hooks:\n          - id: nitpick\n\nThere are 3 available hook IDs:\n\n- ``nitpick`` and ``nitpick-fix`` both run the ``nitpick fix`` command;\n- ``nitpick-check`` runs ``nitpick check``.\n\nIf you want to run Nitpick as a flake8 plugin instead::\n\n    repos:\n      - repo: https://github.com/PyCQA/flake8\n        rev: 4.0.1\n        hooks:\n          - id: flake8\n            additional_dependencies: [nitpick]\n\nRun as a MegaLinter plugin\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nIf you use `MegaLinter <https://megalinter.github.io/>`_ you can run Nitpick as a plugin. Add the following two entries to your ``.mega-linter.yml`` configuration file:\n\n.. code-block:: yaml\n\n    PLUGINS:\n      - https://raw.githubusercontent.com/andreoliwa/nitpick/v0.35.0/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml\n    ENABLE_LINTERS:\n      - NITPICK\n\n\nMore information\n----------------\n\nNitpick is being used by projects such as:\n\n-  `wemake-services/wemake-python-styleguide <https://github.com/wemake-services/wemake-python-styleguide>`_\n-  `dry-python/returns <https://github.com/dry-python/returns>`_\n-  `sobolevn/django-split-settings <https://github.com/sobolevn/django-split-settings>`_\n-  `catalyst-team/catalyst <https://github.com/catalyst-team/catalyst>`_\n-  `alan-turing-institute/AutSPACEs <https://github.com/alan-turing-institute/AutSPACEs>`_\n-  `pytest-dev/pytest-mimesis <https://github.com/pytest-dev/pytest-mimesis>`_\n\nFor more details on styles and which configuration files are currently\nsupported, `see the full documentation <https://nitpick.rtfd.io/>`_.\n\n.. |PyPI| image:: https://img.shields.io/pypi/v/nitpick.svg\n   :target: https://pypi.org/project/nitpick\n.. |GitHub Actions Python Workflow| image:: https://github.com/andreoliwa/nitpick/workflows/Python/badge.svg\n.. |Documentation Status| image:: https://readthedocs.org/projects/nitpick/badge/?version=latest\n   :target: https://nitpick.rtfd.io/en/latest/?badge=latest\n.. |Coveralls| image:: https://coveralls.io/repos/github/andreoliwa/nitpick/badge.svg\n   :target: https://coveralls.io/github/andreoliwa/nitpick\n.. |Maintainability| image:: https://api.codeclimate.com/v1/badges/61e0cdc48e24e76a0460/maintainability\n   :target: https://codeclimate.com/github/andreoliwa/nitpick\n.. |Test Coverage| image:: https://api.codeclimate.com/v1/badges/61e0cdc48e24e76a0460/test_coverage\n   :target: https://codeclimate.com/github/andreoliwa/nitpick\n.. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/nitpick.svg\n   :target: https://pypi.org/project/nitpick/\n.. |Project License| image:: https://img.shields.io/pypi/l/nitpick.svg\n   :target: https://pypi.org/project/nitpick/\n.. |Code style: black| image:: https://img.shields.io/badge/code%20style-black-000000.svg\n   :target: https://github.com/psf/black\n.. |Renovate| image:: https://img.shields.io/badge/renovate-enabled-brightgreen.svg\n   :target: https://renovatebot.com/\n.. |semantic-release| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n   :target: https://github.com/semantic-release/semantic-release\n.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white\n   :target: https://github.com/pre-commit/pre-commit\n   :alt: pre-commit\n.. |pre-commit.ci status| image:: https://results.pre-commit.ci/badge/github/andreoliwa/nitpick/develop.svg\n   :target: https://results.pre-commit.ci/latest/github/andreoliwa/nitpick/develop\n.. |FOSSA Status| image:: https://app.fossa.com/api/projects/git%2Bgithub.com%2Fandreoliwa%2Fnitpick.svg?type=shield\n   :target: https://app.fossa.com/projects/git%2Bgithub.com%2Fandreoliwa%2Fnitpick?ref=badge_shield\n\nContributing\n------------\n\nYour help is very much appreciated.\n\nThere are many possibilities for new features in this project, and not enough time or hands to work on them.\n\nIf you want to contribute with the project, set up your development environment following the steps on the `contribution guidelines <https://nitpick.rtfd.io/en/latest/contributing.html>`_ and send your pull request.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Enforce the same settings across multiple language-independent projects",
    "version": "0.35.0",
    "project_urls": {
        "Changelog": "https://github.com/andreoliwa/nitpick/blob/develop/CHANGELOG.md",
        "Documentation": "https://nitpick.rtfd.io/",
        "Homepage": "https://github.com/andreoliwa/nitpick",
        "Issue Tracker": "https://github.com/andreoliwa/nitpick/issues",
        "Repository": "https://github.com/andreoliwa/nitpick"
    },
    "split_keywords": [
        "flake8",
        "linter",
        "python3",
        "styleguide"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "30ecd02b2e9819d6402759bff10b2adf24687760eb9d1bd3afa0c1fb669303df",
                "md5": "bb566672b9e8ccf0356777c7b3a35534",
                "sha256": "9911d32c2d488b41914aa1a6d230531fa92bbe3d6610e4a468a5cb5e30fab907"
            },
            "downloads": -1,
            "filename": "nitpick-0.35.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb566672b9e8ccf0356777c7b3a35534",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 80809,
            "upload_time": "2023-12-31T16:40:30",
            "upload_time_iso_8601": "2023-12-31T16:40:30.037329Z",
            "url": "https://files.pythonhosted.org/packages/30/ec/d02b2e9819d6402759bff10b2adf24687760eb9d1bd3afa0c1fb669303df/nitpick-0.35.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eb1ddce7b9967812de3964c0258d52324669573e81ead7337f016a202b121354",
                "md5": "8eee6be43b87e717113c6b5f90a296f2",
                "sha256": "098167a4c65655aca52c0ea3876b1e71cf634a27d0e17b971bce9bfcc1f3febe"
            },
            "downloads": -1,
            "filename": "nitpick-0.35.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8eee6be43b87e717113c6b5f90a296f2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 62912,
            "upload_time": "2023-12-31T16:40:31",
            "upload_time_iso_8601": "2023-12-31T16:40:31.474147Z",
            "url": "https://files.pythonhosted.org/packages/eb/1d/dce7b9967812de3964c0258d52324669573e81ead7337f016a202b121354/nitpick-0.35.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-31 16:40:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "andreoliwa",
    "github_project": "nitpick",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "nitpick"
}
        
Elapsed time: 0.20696s