From 61438dd367b7d4dcf51a26a0d53a5fc278fcf26c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Dec 2022 01:19:48 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pycqa/isort: 5.10.1 → v5.11.3](https://github.com/pycqa/isort/compare/5.10.1...v5.11.3) - [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94cf9f95..ddcf8d76 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: # Autoformat: Python - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: v5.11.3 hooks: - id: isort # Autoformat: Python - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.12.0 hooks: - id: black # Autoformat: shell scripts @@ -22,11 +22,11 @@ repos: - id: prettier # code-correctess - repo: https://github.com/PyCQA/flake8 - rev: "5.0.4" + rev: "6.0.0" hooks: - id: flake8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: end-of-file-fixer - id: check-case-conflict From bf88437e711b377011177995a8a2c470c6a3402d Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Tue, 20 Dec 2022 10:25:32 +0100 Subject: [PATCH 2/2] pre-commit.ci: update monthly --- .pre-commit-config.yaml | 13 +++++++++++-- pyproject.toml | 12 ++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ddcf8d76..86255a10 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,25 +10,34 @@ repos: rev: 22.12.0 hooks: - id: black + # Autoformat: shell scripts - repo: https://github.com/lovesegfault/beautysh rev: v6.2.1 hooks: - id: beautysh + # Autoformat: markdown, yaml - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.0.0-alpha.4 hooks: - id: prettier - # code-correctess + + # Lint: Python code - repo: https://github.com/PyCQA/flake8 rev: "6.0.0" hooks: - id: flake8 + + # Misc autoformatting and linting - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: end-of-file-fixer + - id: requirements-txt-fixer - id: check-case-conflict - id: check-executables-have-shebangs - - id: requirements-txt-fixer + +# pre-commit.ci config reference: https://pre-commit.ci/#configuration +ci: + autoupdate_schedule: monthly diff --git a/pyproject.toml b/pyproject.toml index d26dcdf2..f9e02322 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,22 @@ +# isort is used for autoformatting Python code +# +# ref: https://pycqa.github.io/isort/ +# [tool.isort] profile = "black" + +# black is used for autoformatting Python code +# +# ref: https://black.readthedocs.io/en/stable/ +# [tool.black] skip-string-normalization = true target_version = [ "py36", "py37", "py38", + "py39", + "py310", + "py311", ]