From d7be957db85fc5349eba5259cc3392b98ff422a7 Mon Sep 17 00:00:00 2001 From: pmrowla Date: Mon, 30 Jan 2023 01:38:13 +0000 Subject: [PATCH] update template --- .cruft.json | 2 +- .pre-commit-config.yaml | 13 ++++++------- pyproject.toml | 7 +++++-- setup.cfg | 14 +++++++++----- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.cruft.json b/.cruft.json index dbb28cb..9600e1a 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/iterative/py-template", - "commit": "9d27491d231f3c4eaba286d81dc838f8bbc73d37", + "commit": "b003476266a25fc6bc648aecdbe6c8ed82009236", "context": { "cookiecutter": { "project_name": "dvc-task", diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 000fa4a..03d6e72 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,11 +2,11 @@ default_language_version: python: python3 repos: - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.12.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -29,21 +29,20 @@ repos: - id: codespell additional_dependencies: ["tomli"] - repo: https://github.com/asottile/pyupgrade - rev: v3.2.2 + rev: v3.3.1 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort - repo: https://github.com/pycqa/flake8 - rev: 5.0.4 + rev: 6.0.0 hooks: - id: flake8 additional_dependencies: - - flake8-broken-line==0.6.0 - - flake8-bugbear==22.10.27 + - flake8-bugbear==23.1.20 - flake8-comprehensions==3.10.1 - flake8-debugger==4.1.2 - flake8-string-format==0.3.0 diff --git a/pyproject.toml b/pyproject.toml index ad5d29e..9bbf591 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [tool.setuptools_scm] [tool.black] -line-length = 79 +line-length = 88 include = '\.pyi?$' exclude = ''' /( @@ -25,7 +25,7 @@ exclude = ''' [tool.isort] profile = "black" known_first_party = ["dvc_task"] -line_length = 79 +line_length = 88 [tool.pytest.ini_options] addopts = "-ra" @@ -78,6 +78,9 @@ ignore_missing_imports = true [tool.pylint.master] ignore-paths = ["src/dvc_task/contrib"] +[tool.pylint.format] +max-line-length = 88 + [tool.pylint.message_control] enable = ["c-extension-no-member", "no-else-return"] diff --git a/setup.cfg b/setup.cfg index 7602d74..3266a53 100644 --- a/setup.cfg +++ b/setup.cfg @@ -63,12 +63,16 @@ dvc_task = py.typed [flake8] ignore= - E203, # Whitespace before ':' - E266, # Too many leading '#' for block comment - W503, # Line break occurred before a binary operator - P1, # unindexed parameters in the str.format, see: + # Whitespace before ':' + E203 + # Too many leading '#' for block comment + E266 + # Line break occurred before a binary operator + W503 + # unindexed parameters in the str.format, see: # https://pypi.org/project/flake8-string-format/ -max_line_length = 79 + P1 +max_line_length = 88 max-complexity = 15 select = B,C,E,F,W,T4,B902,T,P show_source = true