Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ repos:
- id: end-of-file-fixer

- repo: https://github.com/domdfcoding/pre-commit-hooks
rev: v0.4.0
rev: v0.7.0
hooks:
- id: requirements-txt-sorter
args:
- --allow-git
- id: check-docstring-first
exclude: ^(doc-source/conf|__pkginfo__|setup|tests/.*)\.py$
- id: bind-requirements
args:
- --python-min
- '3.7'

- repo: https://github.com/python-formate/flake8-dunder-all
rev: v0.5.0
Expand All @@ -60,8 +63,8 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.0
- repo: https://github.com/python-formate/pyupgrade
rev: bbe3007
hooks:
- id: pyupgrade
args:
Expand All @@ -80,12 +83,15 @@ repos:
- id: snippet-fmt

- repo: https://github.com/python-formate/formate
rev: v0.9.0
rev: v1.2.1
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
additional_dependencies:
- formate-trailing-commas>=0.1.1
types_or:
- python
- pyi

- repo: https://github.com/python-coincidence/dep_checker
rev: v0.9.0
Expand Down
1 change: 1 addition & 0 deletions doc-source/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pyyaml>=5.3.1
repo-helper-sphinx-theme>=0.0.2
roman>=4.0
seed-intersphinx-mapping>=1.2.2
setuptools<81
sphinx>=3.0.3
sphinx-copybutton>=0.2.12
sphinx-debuginfo>=0.2.2
Expand Down
1 change: 1 addition & 0 deletions formate.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ reformat-generics = 40
noqa-reformat = 60
ellipsis-reformat = 70
squish_stubs = 80
newline_after_equals = 90

[hooks.yapf]
priority = 30
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ requires =
pip>=21,!=22.2
tox-envlist>=0.2.1
tox~=3.0
virtualenv!=20.16.0
virtualenv!=20.16.0,<20.39

[envlists]
test =
Expand Down Expand Up @@ -126,7 +126,6 @@ deps =
git+https://github.com/python-formate/flake8-missing-annotations.git
git+https://github.com/domdfcoding/pydocstyle.git@stub-functions
pygments>=2.7.1
importlib_metadata<4.5.0; python_version<'3.8'
commands = python3 -m flake8_rst_docstrings_sphinx wordle tests --allow-toolbox {posargs}

[testenv:perflint]
Expand Down
Loading