Commit 8c1d168a by pre-commit-ci[bot] Committed by GitHub

[pre-commit.ci] pre-commit autoupdate (#6100)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/yesqa: v1.3.0 → v1.4.0](https://github.com/asottile/yesqa/compare/v1.3.0...v1.4.0)
- [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.37.2...v2.37.3)
- [github.com/hadialqattan/pycln: v2.0.4 → v2.1.1](https://github.com/hadialqattan/pycln/compare/v2.0.4...v2.1.1)
- [github.com/pycqa/flake8: 4.0.1 → 5.0.4](https://github.com/pycqa/flake8/compare/4.0.1...5.0.4)

* Update .pre-commit-config.yaml

Update flake8 plugins versions

* Update .pre-commit-config.yaml

* Fix new issues

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bartosz Sokorski <b.sokorski@gmail.com>
parent b754f294
...@@ -27,32 +27,32 @@ repos: ...@@ -27,32 +27,32 @@ repos:
- id: python-check-blanket-noqa - id: python-check-blanket-noqa
- repo: https://github.com/asottile/yesqa - repo: https://github.com/asottile/yesqa
rev: v1.3.0 rev: v1.4.0
hooks: hooks:
- id: yesqa - id: yesqa
additional_dependencies: &flake8_deps additional_dependencies: &flake8_deps
- flake8-annotations==2.9.0 - flake8-annotations==2.9.0
- flake8-broken-line==0.4.0 - flake8-broken-line==0.5.0
- flake8-bugbear==22.7.1 - flake8-bugbear==22.7.1
- flake8-comprehensions==3.10.0 - flake8-comprehensions==3.10.0
- flake8-eradicate==1.2.1 - flake8-eradicate==1.3.0
- flake8-quotes==3.3.1 - flake8-quotes==3.3.1
- flake8-simplify==0.19.3 - flake8-simplify==0.19.3
- flake8-tidy-imports==4.8.0 - flake8-tidy-imports==4.8.0
- flake8-type-checking==2.1.0 - flake8-type-checking==2.1.2
- flake8-typing-imports==1.12.0 - flake8-typing-imports==1.12.0
- flake8-use-fstring==1.4 - flake8-use-fstring==1.4
- pep8-naming==0.13.1 - pep8-naming==0.13.1
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v2.37.2 rev: v2.37.3
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py37-plus] args: [--py37-plus]
exclude: ^(install|get)-poetry.py$ exclude: ^(install|get)-poetry.py$
- repo: https://github.com/hadialqattan/pycln - repo: https://github.com/hadialqattan/pycln
rev: v2.0.4 rev: v2.1.1
hooks: hooks:
- id: pycln - id: pycln
args: [--all] args: [--all]
...@@ -80,7 +80,7 @@ repos: ...@@ -80,7 +80,7 @@ repos:
- id: black - id: black
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/pycqa/flake8
rev: 4.0.1 rev: 5.0.4
hooks: hooks:
- id: flake8 - id: flake8
additional_dependencies: *flake8_deps additional_dependencies: *flake8_deps
......
...@@ -38,7 +38,8 @@ class ConfigCommand(Command): ...@@ -38,7 +38,8 @@ class ConfigCommand(Command):
option("local", None, "Set/Get from the project's local configuration."), option("local", None, "Set/Get from the project's local configuration."),
] ]
help = """This command allows you to edit the poetry config settings and repositories. help = """\
This command allows you to edit the poetry config settings and repositories.
To add a repository: To add a repository:
......
...@@ -55,7 +55,8 @@ class InstallCommand(InstallerCommand): ...@@ -55,7 +55,8 @@ class InstallCommand(InstallerCommand):
), ),
] ]
help = """The <info>install</info> command reads the <comment>poetry.lock</> file from help = """\
The <info>install</info> command reads the <comment>poetry.lock</> file from
the current directory, processes it, and downloads and installs all the the current directory, processes it, and downloads and installs all the
libraries and dependencies outlined in that file. If the file does not libraries and dependencies outlined in that file. If the file does not
exist it will look for <comment>pyproject.toml</> and do the same. exist it will look for <comment>pyproject.toml</> and do the same.
......
...@@ -220,7 +220,7 @@ def _get_win_folder_with_ctypes(csidl_name: str) -> str: ...@@ -220,7 +220,7 @@ def _get_win_folder_with_ctypes(csidl_name: str) -> str:
def get_win_folder(csidl_name: str) -> Path: def get_win_folder(csidl_name: str) -> Path:
if sys.platform == "win32": if sys.platform == "win32":
try: try:
from ctypes import windll # noqa: F401, TC003 from ctypes import windll # noqa: F401
_get_win_folder = _get_win_folder_with_ctypes _get_win_folder = _get_win_folder_with_ctypes
except ImportError: except ImportError:
......
...@@ -11,4 +11,4 @@ else: ...@@ -11,4 +11,4 @@ else:
try: try:
from typing import Protocol # nopycln: import from typing import Protocol # nopycln: import
except ImportError: except ImportError:
from typing_extensions import Protocol # noqa: F401, TC002 from typing_extensions import Protocol # noqa: F401
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment