Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#346)
Browse files Browse the repository at this point in the history
* docs: move flake8 from GitLab to GitHub

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Augusto W. Andreoli <andreoliwa@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and andreoliwa committed Apr 5, 2021
1 parent 16d8294 commit 6c84f19
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -63,7 +63,7 @@ repos:
hooks:
- id: prettier
stages: [commit]
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/PyCQA/flake8
rev: 3.9.0
hooks:
- id: flake8
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -50,8 +50,8 @@ combine_as_imports = true

This style will assert that:

- ... [black](https://github.com/psf/black), [isort](https://github.com/PyCQA/isort) and [flake8](https://gitlab.com/pycqa/flake8) have a line length of 120;
- ... [flake8](https://gitlab.com/pycqa/flake8) and [isort](https://github.com/PyCQA/isort) are configured as above in `setup.cfg`;
- ... [black](https://github.com/psf/black), [isort](https://github.com/PyCQA/isort) and [flake8](https://github.com/PyCQA/flake8) have a line length of 120;
- ... [flake8](https://github.com/PyCQA/flake8) and [isort](https://github.com/PyCQA/isort) are configured as above in `setup.cfg`;
- ... [Pylint](https://www.pylint.org) is present as a [Poetry](https://github.com/python-poetry/poetry) dev dependency in `pyproject.toml`).

## Quick setup
Expand Down
2 changes: 1 addition & 1 deletion docs/examples.rst
Expand Up @@ -127,7 +127,7 @@ Contents of `styles/flake8.toml <https://github.com/andreoliwa/nitpick/blob/v0.2
# without being asked.
[[".pre-commit-config.yaml".repos]]
yaml = """
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/PyCQA/flake8
rev: 3.9.0
hooks:
- id: flake8
Expand Down
2 changes: 1 addition & 1 deletion docs/targets.rst
Expand Up @@ -10,7 +10,7 @@
.. _commitlint: https://commitlint.js.org/
.. _Django: https://github.com/django/django
.. _EditorConfig: https://editorconfig.org
.. _flake8: https://gitlab.com/pycqa/flake8
.. _flake8: https://github.com/PyCQA/flake8
.. _Flask: https://github.com/pallets/flask/
.. _Flask CLI: https://flask.palletsprojects.com/en/1.1.x/cli/
.. _Invoke: https://github.com/pyinvoke/invoke
Expand Down
2 changes: 1 addition & 1 deletion styles/flake8.toml
Expand Up @@ -12,7 +12,7 @@ exclude = ".tox,build"
# without being asked.
[[".pre-commit-config.yaml".repos]]
yaml = """
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/PyCQA/flake8
rev: 3.9.0
hooks:
- id: flake8
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plugin.py
Expand Up @@ -19,7 +19,7 @@ def _call_main(argv, retv=0):
This is how flake8 itself runs CLI tests.
Copied from:
https://gitlab.com/pycqa/flake8/-/blob/master/tests/integration/test_main.py#L12-15
https://github.com/PyCQA/flake8/blob/master/tests/integration/test_main.py#L12-15
"""
with pytest.raises(SystemExit) as excinfo:
cli.main(argv)
Expand Down

0 comments on commit 6c84f19

Please sign in to comment.