Skip to content

Commit

Permalink
fix: broken link on README (fixes #70, thanks @sobolevn)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Aug 9, 2019
1 parent bf69c0a commit b35bbdb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ To try the package, simply install it (in a virtualenv or globally, wherever) an
$ pip install -U nitpick
$ flake8

You will see warnings if your project configuration is different than [the default style file](https://raw.githubusercontent.com/andreoliwa/nitpick/0.17.0/nitpick-style.toml/nitpick-style.toml).
You will see warnings if your project configuration is different than [the default style file](https://raw.githubusercontent.com/andreoliwa/nitpick/v0.17.0/nitpick-style.toml).

### As a pre-commit hook

Expand All @@ -60,7 +60,7 @@ To check all the other flake8 plugins that are installed with `nitpick`, see the
Change your project config on `pyproject.toml`, and configure your own style like this:

[tool.nitpick]
style = "https://raw.githubusercontent.com/andreoliwa/nitpick/0.17.0/nitpick-style.toml/nitpick-style.toml"
style = "https://raw.githubusercontent.com/andreoliwa/nitpick/v0.17.0/nitpick-style.toml"

You can set `style` with any local file or URL. E.g.: you can use the raw URL of a [GitHub Gist](https://gist.github.com).

Expand All @@ -78,7 +78,7 @@ If a key is defined in more than one file, the value from the last file will pre

2. Any `nitpick-style.toml` file found in the current directory (the one in which `flake8` runs from) or above.

3. If no style is found, then [the default style file from GitHub](https://raw.githubusercontent.com/andreoliwa/nitpick/0.17.0/nitpick-style.toml/nitpick-style.toml) is used.
3. If no style is found, then [the default style file from GitHub](https://raw.githubusercontent.com/andreoliwa/nitpick/v0.17.0/nitpick-style.toml) is used.

### Style file syntax

Expand Down
2 changes: 1 addition & 1 deletion nitpick-style.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Default style file for nitpick
# https://raw.githubusercontent.com/andreoliwa/nitpick/0.17.0/nitpick-style.toml/nitpick-style.toml
# https://raw.githubusercontent.com/andreoliwa/nitpick/v0.17.0/nitpick-style.toml

[nitpick]
minimum_version = "0.10.0"
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ current_version = 0.17.0
commit = False
tag = False

[bumpversion:file:nitpick/__init__.py]
[bumpversion:file:src/nitpick/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

Expand All @@ -20,8 +20,8 @@ search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:nitpick-style.toml]
search = /{current_version}/nitpick-style.toml
replace = /{new_version}/nitpick-style.toml
search = {current_version}
replace = {new_version}

[bumpversion:file:README.md]
search = {current_version}
Expand Down

0 comments on commit b35bbdb

Please sign in to comment.