Skip to content

Commit

Permalink
Merge pull request #1050 from miketheman/miketheman/update-precommit
Browse files Browse the repository at this point in the history
misc: update pre-commit for ruff
  • Loading branch information
fizyk authored Jan 8, 2025
2 parents 529e837 + 8442cae commit ae212b6
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 check
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 @@ -46,7 +46,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 ae212b6

Please sign in to comment.