Skip to content

Commit

Permalink
Update pre-commit (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored Mar 23, 2023
1 parent 0f69150 commit 1bf12f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ repos:
hooks:
- id: black

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.13.0
hooks:
- id: blacken-docs

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
files: \.(css|md|yml|yaml)
files: \.(css|html|md|yml|yaml)
args: [--prose-wrap=preserve]

- repo: https://github.com/asottile/pyupgrade
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Custom commands can access the `pyproject.toml` as follows:
```python
from spin import util


@click.command()
def example():
"""Command that accesses `pyproject.toml` configuration"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
spin = "spin.__main__:main"

[project.optional-dependencies]
lint = ["pre-commit >= 3.1"]
lint = ["pre-commit >= 3.2"]

[project.urls]
homepage = "https://github.com/scientific-python/spin"
Expand Down

0 comments on commit 1bf12f2

Please sign in to comment.