Skip to content

Commit

Permalink
Update pyproject to make Kuro executable after install
Browse files Browse the repository at this point in the history
  • Loading branch information
BamBalaam committed Nov 12, 2018
1 parent eaccb01 commit 6c507dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ Run [Black](https://github.com/ambv/black) (Python code formatter) only on Git u

* Python 3.6 (f-strings!)
* [Click](https://github.com/pallets/click)
* [Black](https://github.com/ambv/black)

## Usage

```
Usage: kuro.py [OPTIONS]
Usage: kuro [OPTIONS]
Options:
--diff Create a diff of the changes, in a 'kuro.diff' file. If
Expand All @@ -33,5 +34,3 @@ If no global or local options are set, Kuro will just run Black normally.

* Validation of Black settings saved on `.kuro_config` file
* Fix applying patch file (slightly broken at the moment)
* Creating a `setup.py` file to actually install this tool locally
* PIP? Maybe.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kuro"
version = "0.0.1"
version = "0.0.3"
description = "Run Black (Python code formatter) only on Git unstaged/untracked files"
authors = ["André Madeira Cortes <[email protected]>"]
license = "GPL-3.0"
Expand All @@ -14,6 +14,9 @@ click = "7.*"

[tool.poetry.dev-dependencies]

[tool.poetry.scripts]
kuro = "kuro:main"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

0 comments on commit 6c507dc

Please sign in to comment.