Skip to content

Commit

Permalink
Switch to using ruff for auto linting and auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
medecau committed Mar 8, 2024
1 parent eafd45a commit 253d2f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ help: ## Show this help.

.PHONY: lint
lint: ## Run linters.
poetry run isort .
poetry run black .
ruff check --select I --fix .
ruff format .

.Phony: check
check: ## Run linters in check mode.
poetry run isort --check .
poetry run black --check .
ruff check .

.PHONY: test
test: ## Run tests.
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ python = "^3.8"

[tool.poetry.group.dev.dependencies]
pdoc = "^12.3.0"
isort = "^5.11.4"
black = "^22.12.0"
pytest = "^8.0.2"
pytest-mock = "^3.12.0"

Expand Down

0 comments on commit 253d2f6

Please sign in to comment.