diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93b3ff3..3faf0ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ exclude: ^tests/conftest/|^.vscode/|^posebusters/datasets/pdb repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: # - id: no-commit-to-branch # branch protected on github - id: forbid-submodules @@ -46,7 +46,7 @@ repos: # update syntax - repo: https://github.com/asottile/pyupgrade - rev: v2.31.0 + rev: v3.15.0 hooks: - id: pyupgrade args: ["--py37-plus"] @@ -56,10 +56,11 @@ repos: rev: 5.12.0 hooks: - id: isort + args: ["--settings-path=pyproject.toml"] # find unused imports - repo: https://github.com/hadialqattan/pycln - rev: v2.1.3 + rev: v2.4.0 hooks: - id: pycln args: ["--config=pyproject.toml"] @@ -67,28 +68,29 @@ repos: # format code - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.11.0 hooks: - id: black language_version: python3.11 + args: ["--config=pyproject.toml"] # lint code - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 additional_dependencies: ["flake8-black", "flake8-docstrings", "flake8-pyproject"] # check types - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.2.0 + rev: v1.7.0 hooks: - id: mypy additional_dependencies: ["types-PyYAML"] # find typos - repo: https://github.com/codespell-project/codespell - rev: v2.2.4 + rev: v2.2.6 hooks: - id: codespell additional_dependencies: ["tomli"] diff --git a/pyproject.toml b/pyproject.toml index 9466bad..5de09aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,6 +67,9 @@ per-file-ignores = """ tests/*: D """ +[tool.pylint] +max-line-length = 120 + [tool.coverage.run] branch = true