Skip to content

Commit

Permalink
Use ruff for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernPetersen committed Jun 30, 2024
1 parent 91384b5 commit f461c8b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 92 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
uses: BlindfoldedSurgery/renovate-config/.github/workflows/validate.yml@main

lint:
uses: BlindfoldedSurgery/actions-python/.github/workflows/lint.yml@v1
uses: BlindfoldedSurgery/actions-python/.github/workflows/lint.yml@v2
with:
python-version: '3.12'

test:
uses: BlindfoldedSurgery/actions-python/.github/workflows/test.yml@v1
uses: BlindfoldedSurgery/actions-python/.github/workflows/test.yml@v2
with:
python-version: '3.12'

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ check: lint test

.PHONY: lint
lint:
poetry run black src/
poetry run ruff format src/
poetry run ruff check --fix --show-fixes src/
poetry run mypy src/

Expand Down
87 changes: 1 addition & 86 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ python-telegram-bot = "21.3"
sentry-sdk = "^2.0.0"

[tool.poetry.group.dev.dependencies]
black = "^24.0.0"
mypy = "~1.10"
pytest = "^8.0.0"
ruff = "0.5.0"
Expand All @@ -41,10 +40,10 @@ strict = false
check_untyped_defs = true
disallow_untyped_defs = false

[tool.ruff]
[tool.ruff.lint]
extend-select = [
"I001",
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["app"]

0 comments on commit f461c8b

Please sign in to comment.