-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace autoflake/flake8/isort with ruff
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
- Loading branch information
Showing
6 changed files
with
41 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ jobs: | |
- name: Do linting | ||
run: | | ||
make check | ||
make ci-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
.PHONY: all | ||
all: fix | ||
all: | ||
|
||
.PHONY: install | ||
install: | ||
pip install -U -r requirements.txt | ||
python -m pip install -U pip -r requirements.txt | ||
|
||
.PHONY: check | ||
check: | ||
.PHONY: ci-check | ||
ci-check: | ||
mypy -p plugin | ||
flake8 . | ||
black --check --diff --preview . | ||
isort --check --diff . | ||
ruff check --diff --preview . | ||
black --diff --preview --check . | ||
|
||
.PHONY: fix | ||
fix: | ||
autoflake --in-place . | ||
.PHONY: ci-fix | ||
ci-fix: | ||
ruff check --preview --fix . | ||
# ruff format --preview . | ||
black --preview . | ||
isort . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
# This is an implicit value, here for clarity | ||
--index https://pypi.python.org/simple/ | ||
|
||
autoflake | ||
black | ||
flake8 | ||
isort | ||
mypy | ||
ruff |