Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove references to black from the project #2674

Merged
merged 6 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
src: docs/src/python
- run: |
cd docs
make check

build-deploy:
needs:
Expand Down
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.DEFAULT_GOAL := help

.PHONY: install-ruff
install-ruff: ## install ruff
$(info --- Installing ruff ---)
pip install ruff==0.5.2

.PHONY: format
format: install-ruff ## format code with ruff
$(info --- format Python code in docs ---)
ruff format .

.PHONY: check
check: install-ruff ## check if code is formatted with ruff
$(info --- format Python code in docs ---)
ruff format --check .

.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
4 changes: 0 additions & 4 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ warn_return_any = false
implicit_reexport = true
strict_equality = true

[tool.black]
include = '\.pyi?$'
exclude = "venv"

[tool.ruff.lint]
select = [
# pycodestyle error
Expand Down
Loading