From 5ef3692e24f8f589ea4abb6ea36b726567720704 Mon Sep 17 00:00:00 2001 From: Abe M Date: Thu, 2 Nov 2023 21:58:58 -0700 Subject: [PATCH] Switch to Ruff formatter --- .github/workflows/main.yaml | 2 +- README.md | 6 ++++++ pyproject.toml | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 195911b..aa4bca8 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -28,7 +28,7 @@ jobs: - name: Linting code run: | - ruff . + ruff check . type-check: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 76f0ffe..8181c8c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 0309db5..35b8f22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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