Skip to content

Commit

Permalink
Switch to Ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
FastestMolasses committed Nov 3, 2023
1 parent 3544c2e commit 5ef3692
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Linting code
run: |
ruff .
ruff check .
type-check:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ Then you can update the latest versions of the dependencies by running this comm
poetry up
```
You can update dev dependencies by running this command. You can modify this to update other groups as well.
```bash
poetry up --only=dev --latest
```
[More info](https://github.com/MousaZeidBaker/poetry-plugin-up)
## Databases
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ target-version = "py311"
extend-exclude = [".pytest_cache"]
ignore-init-module-imports = true

[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"

[tool.ruff.mccabe]
max-complexity = 10

Expand Down

0 comments on commit 5ef3692

Please sign in to comment.