File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 8989 - name : Install Dependencies
9090 run : flit install --symlink
9191 - name : Ruff format
92- run : ruff format --preview -- check ninja tests
92+ run : ruff format --check ninja tests
9393 - name : Ruff lint
94- run : ruff check --preview ninja tests
94+ run : ruff check ninja tests
9595 - name : mypy
9696 run : mypy ninja tests/mypy_test.py
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ install: ## Install dependencies
1010
1111.PHONY : lint
1212lint : # # Run code linters
13- ruff format --preview -- check ninja tests
14- ruff check --preview ninja tests
13+ ruff format --check ninja tests
14+ ruff check ninja tests
1515 mypy ninja
1616
1717.PHONY : fmt format
1818fmt format : # # Run code formatters
19- ruff format --preview ninja tests
20- ruff check --preview -- fix ninja tests
19+ ruff format ninja tests
20+ ruff check --fix ninja tests
2121
2222.PHONY : test
2323test : # # Run tests
Original file line number Diff line number Diff line change @@ -72,7 +72,11 @@ dev = ["pre-commit"]
7272[tool .ruff ]
7373target-version = " py37"
7474
75+ [tool .ruff .format ]
76+ preview = true
77+
7578[tool .ruff .lint ]
79+ preview = true
7680select = [
7781 " B" , # flake8-bugbear
7882 " C" , # flake8-comprehensions
You can’t perform that action at this time.
0 commit comments