Skip to main content

Run Black (Python code formatter) only on Git unstaged/untracked files

Project description

Kuro

Run Black (Python code formatter) only on Git unstaged/untracked files

Code style: black

Requirements

Usage

Usage: kuro [OPTIONS]

Options:
  --diff             Create a diff of the changes, in a 'kuro.diff' file. If
                     you approve the changes, run kuro with --apply_diff.
  --apply_diff       Consume (and delete) an existing 'kuro.diff' file.
  --project_options  Setup options for Kuro/Black on a directory level.
  --help             Show this message and exit.

If you so desire, you can set a different Kuro/Black configuration on a global level by exporting an environment variable called KURO_BLACK_OPTIONS.

Kuro will prioritize using project options over using global options.

If no global or local options are set, Kuro will just run Black normally.

TODO List

  • Validation of Black settings saved on .kuro_config file
  • Fix applying patch file (slightly broken at the moment)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kuro-0.0.3.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

kuro-0.0.3-py3-none-any.whl (40.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page