-
-
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.
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
- Loading branch information
Showing
5 changed files
with
56 additions
and
57 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
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,18 +1,29 @@ | ||
UV_INSTALL_FLAGS := | ||
|
||
|
||
.PHONY: all | ||
all: | ||
|
||
.PHONY: install | ||
install: | ||
python -m pip install -U pip -r requirements.txt | ||
uv pip install $(UV_INSTALL_FLAGS) -r requirements.txt | ||
|
||
.PHONY: pip-compile | ||
pip-compile: | ||
uv pip compile --upgrade requirements.in -o requirements.txt | ||
|
||
.PHONY: ci-check | ||
ci-check: | ||
@echo "========== check: mypy ==========" | ||
mypy -p plugin | ||
ruff check --diff --preview . | ||
black --diff --preview --check . | ||
@echo "========== check: ruff (lint) ==========" | ||
ruff check --diff . | ||
@echo "========== check: ruff (format) ==========" | ||
ruff format --diff . | ||
|
||
.PHONY: ci-fix | ||
ci-fix: | ||
ruff check --preview --fix . | ||
# ruff format --preview . | ||
black --preview . | ||
@echo "========== fix: ruff (lint) ==========" | ||
ruff check --fix . | ||
@echo "========== fix: ruff (format) ==========" | ||
ruff format . |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
mypy | ||
ruff>=0.2 |
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,6 +1,8 @@ | ||
# This is an implicit value, here for clarity | ||
--index https://pypi.python.org/simple/ | ||
|
||
black | ||
mypy | ||
ruff | ||
# This file was autogenerated by uv via the following command: | ||
# uv pip compile requirements.in -o requirements.txt | ||
mypy==1.8.0 | ||
mypy-extensions==1.0.0 | ||
# via mypy | ||
ruff==0.3.0 | ||
typing-extensions==4.10.0 | ||
# via mypy |