diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bd1c520..195d2c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,33 +12,36 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - id: mixed-line-ending + - id: check-added-large-files + args: ['--maxkb=500'] # - repo: https://gitlab.com/pycqa/flake8 # rev: 3.8.3 # hooks: # - id: flake8 -- repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.3.0 - hooks: - - id: mypy -- repo: https://github.com/asottile/seed-isort-config - rev: v2.2.0 - hooks: - - id: seed-isort-config -- repo: https://github.com/pre-commit/mirrors-isort - rev: v5.10.1 - hooks: - - id: isort - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.9.1 hooks: - id: black +- repo: https://github.com/asottile/blacken-docs + rev: 1.16.0 + hooks: + - id: blacken-docs + additional_dependencies: [black==22.1.0] +- repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.0.290 + hooks: + - id: ruff + args: ['--fix'] - repo: https://github.com/asottile/pyupgrade - rev: v3.4.0 + rev: v3.12.0 hooks: - id: pyupgrade args: [--py36-plus] -- repo: https://github.com/asottile/blacken-docs - rev: 1.13.0 +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.5.1 hooks: - - id: blacken-docs - additional_dependencies: [black==22.1.0] + - id: mypy +- repo: https://github.com/pre-commit/mirrors-isort + rev: v5.10.1 + hooks: + - id: isort diff --git a/requirements/dev.txt b/requirements/dev.txt index fb4e5c8..a80ab48 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -4,87 +4,84 @@ # # pip-compile requirements/dev.in # -attrs==21.4.0 - # via pytest -certifi==2021.10.8 +build==1.0.3 + # via pip-tools +certifi==2023.7.22 # via requests -cfgv==3.3.1 +cfgv==3.4.0 # via pre-commit -charset-normalizer==2.0.12 +charset-normalizer==3.2.0 # via requests -click==8.0.4 +click==8.1.7 # via pip-tools -coverage[toml]==6.3.2 +coverage[toml]==7.3.1 # via pytest-cov -distlib==0.3.4 +distlib==0.3.7 # via virtualenv -docutils==0.18.1 +docutils==0.20.1 # via flit -filelock==3.6.0 +exceptiongroup==1.1.3 + # via pytest +filelock==3.12.4 # via virtualenv -flit==3.8.0 +flit==3.9.0 # via -r requirements/dev.in -flit-core==3.8.0 +flit-core==3.9.0 # via flit -identify==2.4.12 +identify==2.5.29 # via pre-commit -idna==3.3 +idna==3.4 # via requests -iniconfig==1.1.1 +iniconfig==2.0.0 # via pytest -jinja2==3.1.1 +jinja2==3.1.2 # via junit2html -junit2html==30.0.6 +junit2html==30.1.3 # via -r requirements/dev.in -markupsafe==2.1.1 +markupsafe==2.1.3 # via jinja2 -nodeenv==1.6.0 +nodeenv==1.8.0 # via pre-commit -packaging==21.3 - # via pytest -pep517==0.12.0 - # via pip-tools -pip-tools==6.5.1 +packaging==23.1 + # via + # build + # pytest +pip-tools==7.3.0 # via -r requirements/dev.in -platformdirs==2.5.1 +platformdirs==3.10.0 # via virtualenv -pluggy==1.0.0 +pluggy==1.3.0 # via pytest -pre-commit==2.17.0 +pre-commit==3.4.0 # via -r requirements/dev.in -py==1.11.0 - # via pytest -pyparsing==3.0.7 - # via packaging -pytest==7.1.1 +pyproject-hooks==1.0.0 + # via build +pytest==7.4.2 # via # -r requirements/dev.in # pytest-cov # pytest-timeout -pytest-cov==3.0.0 +pytest-cov==4.1.0 # via -r requirements/dev.in pytest-timeout==2.1.0 # via -r requirements/dev.in -pyyaml==6.0 +pyyaml==6.0.1 # via pre-commit -requests==2.27.1 +requests==2.31.0 # via flit -six==1.16.0 - # via virtualenv -toml==0.10.2 - # via pre-commit tomli==2.0.1 # via + # build # coverage - # pep517 + # pip-tools # pytest tomli-w==1.0.0 # via flit -urllib3==1.26.9 +urllib3==2.0.5 # via requests -virtualenv==20.14.0 +virtualenv==20.24.5 # via pre-commit -wheel==0.37.1 +wheel==0.41.2 # via # -r requirements/dev.in # pip-tools diff --git a/requirements/lint.txt b/requirements/lint.txt index cb67790..73cdec8 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -1,21 +1,20 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.10 +# by the following command: # # pip-compile requirements/lint.in # -attrs==21.4.0 +attrs==23.1.0 # via # flake8-bugbear # flake8-eradicate - # flake8-implicit-str-concat -black==22.1.0 +black==23.9.1 # via -r requirements/lint.in -click==8.0.4 +click==8.1.7 # via black -eradicate==2.0.0 +eradicate==2.3.0 # via flake8-eradicate -flake8==4.0.1 +flake8==6.1.0 # via # -r requirements/lint.in # flake8-bugbear @@ -26,59 +25,59 @@ flake8==4.0.1 # flake8-isort # flake8-raise # flake8-string-format -flake8-bugbear==22.3.23 +flake8-bugbear==23.9.16 # via -r requirements/lint.in -flake8-builtins==1.5.3 +flake8-builtins==2.1.0 # via -r requirements/lint.in -flake8-comprehensions==3.8.0 +flake8-comprehensions==3.14.0 # via -r requirements/lint.in -flake8-eradicate==1.2.0 +flake8-eradicate==1.5.0 # via -r requirements/lint.in -flake8-executable==2.1.1 +flake8-executable==2.1.3 # via -r requirements/lint.in -flake8-implicit-str-concat==0.3.0 +flake8-implicit-str-concat==0.4.0 # via -r requirements/lint.in -flake8-isort==4.1.1 +flake8-isort==6.1.0 # via -r requirements/lint.in -flake8-plugin-utils==1.3.2 +flake8-plugin-utils==1.3.3 # via flake8-pytest-style -flake8-pytest-style==1.6.0 +flake8-pytest-style==1.7.2 # via -r requirements/lint.in flake8-raise==0.0.5 # via -r requirements/lint.in flake8-string-format==0.3.0 # via -r requirements/lint.in -isort==5.10.1 +isort==5.12.0 # via flake8-isort -mccabe==0.6.1 +mccabe==0.7.0 # via # -r requirements/lint.in # flake8 -more-itertools==8.12.0 - # via flake8-implicit-str-concat -mypy==0.942 +mypy==1.5.1 # via -r requirements/lint.in -mypy-extensions==0.4.3 +mypy-extensions==1.0.0 # via # black # mypy -pathspec==0.9.0 +packaging==23.1 # via black -platformdirs==2.5.1 +pathspec==0.11.2 # via black -pycodestyle==2.8.0 +platformdirs==3.10.0 + # via black +pycodestyle==2.11.0 # via flake8 -pydocstyle==6.1.1 +pydocstyle==6.3.0 # via -r requirements/lint.in -pyflakes==2.4.0 +pyflakes==3.1.0 # via flake8 snowballstemmer==2.2.0 # via pydocstyle -testfixtures==6.18.5 - # via flake8-isort tomli==2.0.1 # via # black # mypy -typing-extensions==4.1.1 - # via mypy +typing-extensions==4.8.0 + # via + # black + # mypy