@@ -11,32 +11,27 @@ mypy: ## Runs mypy against staged changes for static type checking.
1111 @\
1212 pre-commit run --hook-stage manual mypy-check | grep -v " INFO"
1313
14- .PHONY : flake8
15- flake8 : # # Runs flake8 against staged changes to enforce style guide.
14+ .PHONY : ruff
15+ ruff : # # Runs ruff against staged changes to enforce style guide.
1616 @\
17- pre-commit run --hook-stage manual flake8 -check | grep -v " INFO"
17+ pre-commit run --hook-stage manual ruff -check-manual | grep -v " INFO"
1818
1919.PHONY : black
2020black : # # Runs black against staged changes to enforce style guide.
2121 @\
2222 pre-commit run --hook-stage manual black-check -v | grep -v " INFO"
2323
2424.PHONY : lint
25- lint : # # Runs flake8 and mypy code checks against staged changes.
25+ lint : # # Runs ruff and mypy code checks against staged changes.
2626 @\
27- pre-commit run flake8 -check --hook-stage manual | grep -v " INFO" ; \
27+ pre-commit run ruff -check-manual --hook-stage manual | grep -v " INFO" ; \
2828 pre-commit run mypy-check --hook-stage manual | grep -v " INFO"
2929
3030.PHONY : all
3131all : # # Runs all checks against staged changes.
3232 @\
3333 pre-commit run -a
3434
35- .PHONY : linecheck
36- linecheck : # # Checks for all Python lines 100 characters or more
37- @\
38- find dbt -type f -name " *.py" -exec grep -I -r -n ' .\{100\}' {} \;
39-
4035.PHONY : unit
4136unit : # # Runs unit tests.
4237 @\
@@ -52,7 +47,7 @@ test: ## Runs unit tests and code checks against staged changes.
5247 @\
5348 pytest -n auto -ra -v tests/unit; \
5449 pre-commit run black-check --hook-stage manual | grep -v " INFO" ; \
55- pre-commit run flake8 -check --hook-stage manual | grep -v " INFO" ; \
50+ pre-commit run ruff -check-manual --hook-stage manual | grep -v " INFO" ; \
5651 pre-commit run mypy-check --hook-stage manual | grep -v " INFO"
5752
5853.PHONY : server
0 commit comments