Skip to content

Commit d4fcc4a

Browse files
authored
Merge pull request #66 from jerry-git/introduce-ruff
Introduce ruff
2 parents 99d7512 + 5d7cdc2 commit d4fcc4a

File tree

12 files changed

+682
-757
lines changed

12 files changed

+682
-757
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,22 @@ repos:
1515
- id: mixed-line-ending
1616
- repo: local
1717
hooks:
18-
- id: autoflake
19-
name: autoflake
20-
entry: poetry run autoflake -r -i --remove-all-unused-imports --remove-unused-variables
21-
language: system
22-
types: [ python ]
23-
- id: isort
24-
name: isort
25-
entry: poetry run isort
26-
language: system
27-
types: [python]
2818
- id: black
2919
name: black
3020
entry: poetry run black
3121
language: system
3222
types: [python]
33-
- id: pyupgrade
34-
name: pyupgrade
35-
entry: poetry run pyupgrade --py37-plus
36-
language: system
37-
types: [python]
3823
- id: mypy
3924
name: mypy
4025
entry: poetry run mypy .
4126
require_serial: true
4227
language: system
4328
types: [python]
4429
pass_filenames: false
45-
- id: flake8
46-
name: flake8
47-
entry: poetry run flake8
30+
- id: ruff
31+
name: ruff
32+
entry: poetry run ruff check
33+
require_serial: true
4834
language: system
4935
types: [python]
5036
- id: kacl-verify

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

66
## [Unreleased]
7+
### Changed
8+
- Introduce Ruff
79

810
## [0.8.0] - 2022-04-22
911
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Find the draft release from the
133133

134134
### Pre-commit
135135

136-
Pre-commit hooks run all the auto-formatters (e.g. `black`, `isort`), linters (e.g. `mypy`, `flake8`), and other quality
136+
Pre-commit hooks run all the auto-formatters (e.g. `black`), linters (e.g. `mypy`, `ruff`), and other quality
137137
checks to make sure the changeset is in good shape before a commit/push happens.
138138

139139
You can install the hooks with (runs for each commit):

0 commit comments

Comments
 (0)