Skip to content

Commit

Permalink
docs: Fix links
Browse files Browse the repository at this point in the history
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com>
  • Loading branch information
RedGuy12 committed Jan 31, 2024
1 parent 0a4cd49 commit 6281f48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions docs/faq.md
Expand Up @@ -79,8 +79,7 @@ following will not be formatted:

## Why does Flake8 report warnings?

See
[Using _Black_ with other tools](guides/using_black_with_other_tools.md#why-pycodestyle-warnings).
See [Using _Black_ with other tools](labels/why-pycodestyle-warnings).

## Which Python versions does Black support?

Expand Down
6 changes: 3 additions & 3 deletions docs/guides/using_black_with_other_tools.md
Expand Up @@ -200,15 +200,15 @@ ignore = E203,E701
### Flake8

[Flake8](https://pypi.org/p/flake8/) is a wrapper around multiple linters, including
pycodestyle. As such, it has many of the same issues
pycodestyle. As such, it has many of the same issues.

#### Bugbear

It's recommended to use [the Bugbear plugin](https://github.com/PyCQA/flake8-bugbear)
and enabling
[its B950 check](https://github.com/PyCQA/flake8-bugbear#opinionated-warnings#:~:text=you%20expect%20it.-,B950,-%3A%20Line%20too%20long)
instead of using Flake8's E501, because it aligns with
[Black's 10% rule](the_black_code_style/current_style.md#line-length).
[Black's 10% rule](labels/line-length).

Install Bugbear and use the following config:

Expand All @@ -232,7 +232,7 @@ extend-ignore = E203,E701

#### Why those options above?

See [the pycodestyle section](#why-pycodestyle-warnings) above.
See [the pycodestyle section](labels/why-pycodestyle-warnings) above.

#### Formats

Expand Down
5 changes: 3 additions & 2 deletions docs/the_black_code_style/current_style.md
Expand Up @@ -155,8 +155,9 @@ to present code neatly in documentation or talk slides.

#### Flake8 / pycodestyle

See [Using _Black_ with other tools](guides/using_black_with_other_tools.md) about
linter compatibility.
See
[Using _Black_ with other tools](../guides/using_black_with_other_tools.md#pycodestyle)
about linter compatibility.

### Empty lines

Expand Down

0 comments on commit 6281f48

Please sign in to comment.