Skip to content

Commit

Permalink
Downgrading Flake8 to 3.* due to this
Browse files Browse the repository at this point in the history
  • Loading branch information
almazkun committed Nov 15, 2021
1 parent 89eff1c commit e3ccec2
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 27 deletions.
14 changes: 7 additions & 7 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ verify_ssl = true
name = "pypi"

[packages]
gitpython = "*"
isort = "*"
autoflake = "*"
black = "*"
flake8 = "*"
pylint = "*"
vulture = "*"
gitpython = "==3.1.*"
isort = "==5.10.*"
autoflake = "==1.4.*"
black = "==21.10b0"
flake8 = "==3.*"
pylint = "==2.11.*"
vulture = "==2.3.*"

[dev-packages]
pytest = "*"
Expand Down
34 changes: 16 additions & 18 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ It will do:

Obeys `.flake8`, `.pylintrc` and `whitelist.py` config files in the current directory.

# Usage
* install [`pipx`](https://github.com/pypa/pipx):
```bash
python3 -m pip install --user pipx
python3 -m pipx ensurepath
```
* Install [`gadd`](https://pypi.org/project/gadd/) with `pipx`:
```bash
pipx install gadd
```
* Stage file to test:
```bash
git add some_file.py
gadd
```

# Tutorial
This is quick tutorial on hoe to create `pip` installable Python CLI tool.

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gadd"
version = "0.2.0"
version = "0.2.1"
description = "Sort imports, remove unused imports, run Black, flake8, pylint, vulture in one go for al staged .py files"
authors = ["Almaz Kunpeissov <hello@akun.dev>"]
keywords = ["Black", "Sort imports", "analysis", "automation", "autopep8", "code", "flake8", "formatter", "gofmt", "lint", "linter", "pyfmt", "pylint", "python", "remove unused imports", "rustfmt", "static", "vulture", "yapf"]
Expand All @@ -22,7 +22,7 @@ classifiers = [
python = "^3.6"
autoflake = "==1.4.*"
black = "==21.10b0"
flake8 = "==4.0.*"
flake8 = "==3.*"
gitpython = "==3.1.*"
isort = "==5.10.*"
pylint = "==2.11.*"
Expand Down

0 comments on commit e3ccec2

Please sign in to comment.