Skip to content

Commit

Permalink
replace black to ruff format (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
shapiromatron authored Nov 13, 2023
1 parent 2f5aae6 commit b8fb903
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ clean: ## Remove build artifacts
@rm -rf dist/

lint: ## Check formatting issues
@black . --check && ruff .
@ruff format . --check && ruff .

format: ## Fix formatting issues (where possible)
@black . && ruff . --fix --show-fixes
@ruff format . && ruff . --fix --show-fixes

test: ## Run tests
@py.test
Expand Down
4 changes: 2 additions & 2 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ echo. build Build python wheel package
goto :eof

:lint
black . --check && ruff .
ruff format . --check && ruff .
goto :eof

:format
black . && ruff . --fix --show-fixes
ruff format . && ruff . --fix --show-fixes
goto :eof

:test
Expand Down
7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ dev = [
"flit~=3.9.0",
"coverage~=7.3.2",
"pytest~=7.4.2",
"black==23.9.1",
"ruff==0.1.0",
"ruff~=0.1.3",
]

[project.urls]
Expand All @@ -38,10 +37,6 @@ Changes = "https://github.com/shapiromatron/pyscaffold/blob/main/HISTORY.md"
[project.scripts]
pyscaffold = "pyscaffold.cli:app"

[tool.black]
line-length = 100
target-version = ['py311']

[tool.ruff]
line-length = 100
target-version = "py311"
Expand Down

0 comments on commit b8fb903

Please sign in to comment.