diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0fada69..373252c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,25 +1,48 @@ +--- +ci: + autoupdate_schedule: quarterly + # See https://pre-commit.com/hooks.html for info on hooks repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 - hooks: - - id: check-added-large-files - - id: check-ast - - id: check-case-conflict - - id: check-toml - - id: check-yaml - - id: debug-statements - - id: detect-private-key - - id: end-of-file-fixer - - id: trailing-whitespace -- repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.4 - hooks: - - id: flake8 - args: [--max-line-length=120] - language_version: python3.7 -- repo: https://github.com/pre-commit/mirrors-isort - rev: v4.3.21 - hooks: - - id: isort - args: [--recursive --check-only] + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-added-large-files + - id: check-ast + - id: check-case-conflict + - id: check-merge-conflict + - id: check-toml + - id: check-yaml + - id: debug-statements + - id: detect-private-key + - id: end-of-file-fixer + - id: forbid-new-submodules + - id: trailing-whitespace + + - repo: https://github.com/psf/black + rev: 23.3.0 + hooks: + - id: black + + - repo: https://github.com/PyCQA/flake8 + rev: 3.9.2 + hooks: + - id: flake8 + args: [--max-line-length=88] + + - repo: https://github.com/PyCQA/isort + rev: 5.12.0 + hooks: + - id: isort + + - repo: https://github.com/asottile/pyupgrade + rev: v3.3.1 + hooks: + - id: pyupgrade + args: [--py38-plus] + + - repo: https://github.com/hakancelikdev/unimport + rev: 0.16.0 + hooks: + - id: unimport + args: [--remove, --include-star-import] diff --git a/pyproject.toml b/pyproject.toml index f275745..07b86f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,19 +37,19 @@ classifiers = [ [tool.poetry.dependencies] python = ">=3.8.1,<4.0" -pelican = "^4.2" +pelican = "^4.5" markdown = {version = "^3.1.1",optional = true} [tool.poetry.dev-dependencies] -flake8 = "^3.7" -invoke = "^1.3" -isort = "^4.3" +flake8 = "^3.9" +invoke = "^2.0" +isort = "^5.12.0" livereload = "^2.6" markdown = "^3.1.1" -pytest = ">=5.0,!=5.4.0,!=5.4.1" -pytest-cov = "^2.7" +pytest = "^6.0" +pytest-cov = "^2.8" pytest-pythonpath = "^0.7.3" -pytest-sugar = "^0.9.2" +pytest-sugar = "^0.9.6" Werkzeug = "^0.15.5" [tool.poetry.extras]