Skip to content

Commit

Permalink
misc: update pre-commit for ruff
Browse files Browse the repository at this point in the history
Follow-on to #741

Signed-off-by: Mike Fiedler <[email protected]>
  • Loading branch information
miketheman committed Dec 26, 2024
1 parent b26e712 commit a4c5852
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,12 @@ repos:
types:
- python
require_serial: true
- id: flake8
name: flake8
entry: flake8
- id: ruff
name: ruff
entry: ruff
language: system
types_or:
- python
- pyi
- id: pydocstyle
name: pydocstyle
entry: pydocstyle
language: system
types:
- python
- id: mypy
name: mypy
entry: mypy
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Commits
Coding style
------------

#. Coding style is being handled by black and doublechecked by flake8 and pydocstyle
#. Coding style is being handled by black and doublechecked by ruff.
* We provide a `pre-commit <https://pre-commit.com/>`_ configuration for invoking these on commit.

Testing
Expand Down
1 change: 1 addition & 0 deletions newsfragments/+7b6c5deb.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update pre-commit configuration to use ruff instead of flake8/pydocstyle

0 comments on commit a4c5852

Please sign in to comment.