From db51a3b4d230999eb904d898dc8ab2175ce722fe Mon Sep 17 00:00:00 2001 From: Roni Ahmadi Date: Fri, 27 Sep 2024 05:39:26 +0700 Subject: [PATCH 1/3] update uv --- .flake8 | 11 ----- .github/workflows/black.yml | 13 ------ .../workflows/deploy_toserver_production.yml | 23 ---------- .github/workflows/deploy_toserver_test.yml | 23 ---------- .github/workflows/flake8.yml | 17 -------- .github/workflows/isort .yml | 13 ------ .github/workflows/ruff.yml | 18 ++++++++ .isort.cfg | 7 ---- frontend/urls.py | 2 +- .../views/{cart => proccess}/approve_view.py | 0 pyproject.toml | 23 ++++++++++ uv.lock | 42 +++++++++++++++++++ 12 files changed, 84 insertions(+), 108 deletions(-) delete mode 100644 .flake8 delete mode 100644 .github/workflows/black.yml delete mode 100644 .github/workflows/deploy_toserver_production.yml delete mode 100644 .github/workflows/deploy_toserver_test.yml delete mode 100644 .github/workflows/flake8.yml delete mode 100644 .github/workflows/isort .yml create mode 100644 .github/workflows/ruff.yml delete mode 100644 .isort.cfg rename frontend/views/{cart => proccess}/approve_view.py (100%) diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 4f3437d..0000000 --- a/.flake8 +++ /dev/null @@ -1,11 +0,0 @@ -[flake8] -ignore = E501 -max-line-length = 120 -exclude = - migrations - __pycache__ - manage.py - settings.py - env - .env - .venv \ No newline at end of file diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml deleted file mode 100644 index 79fc4ce..0000000 --- a/.github/workflows/black.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Black - -on: [push, pull_request] - -jobs: - Black: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: psf/black@stable - with: - options: "--check --verbose" - version: "~= 24.2.0" \ No newline at end of file diff --git a/.github/workflows/deploy_toserver_production.yml b/.github/workflows/deploy_toserver_production.yml deleted file mode 100644 index 514fb1b..0000000 --- a/.github/workflows/deploy_toserver_production.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Deploy to server production -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] -jobs: - build: - name: build-apps - runs-on: ubuntu-latest - steps: - - name: executing remote ssh commands using password - uses: appleboy/ssh-action@v1.0.3 - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - port: ${{ secrets.PORT }} - script: | - cd $HOME/Projek/geraipi_main - source $HOME/virtualenv/Projek/geraipi_main/3.10/bin/activate - git pull origin main - touch tmp/restart.txt diff --git a/.github/workflows/deploy_toserver_test.yml b/.github/workflows/deploy_toserver_test.yml deleted file mode 100644 index 9df0bfb..0000000 --- a/.github/workflows/deploy_toserver_test.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Deploy to server test -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] -jobs: - build: - name: build-apps - runs-on: ubuntu-latest - steps: - - name: executing remote ssh commands using password - uses: appleboy/ssh-action@v1.0.3 - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - port: ${{ secrets.PORT }} - script: | - cd $HOME/Projek/geraipi_test - source $HOME/virtualenv/Projek/geraipi_test/3.10/bin/activate - git pull origin main - touch tmp/restart.txt diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml deleted file mode 100644 index b692a76..0000000 --- a/.github/workflows/flake8.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: flake8 Lint - -on: [push, pull_request] - -jobs: - flake8-lint: - runs-on: ubuntu-latest - name: Lint - steps: - - name: Check out source repository - uses: actions/checkout@v3 - - name: Set up Python environment - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: flake8 Lint - uses: py-actions/flake8@v2 \ No newline at end of file diff --git a/.github/workflows/isort .yml b/.github/workflows/isort .yml deleted file mode 100644 index 3cdaa01..0000000 --- a/.github/workflows/isort .yml +++ /dev/null @@ -1,13 +0,0 @@ -name: isort -on: - - push - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: isort/isort-action@v1 - with: - options: --check-only - requirements-files: "requirements.txt" \ No newline at end of file diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..6133f5e --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,18 @@ +name: CI +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install ruff + # Update output format to enable automatic inline annotations. + - name: Run Ruff + run: ruff check --output-format=github . \ No newline at end of file diff --git a/.isort.cfg b/.isort.cfg deleted file mode 100644 index 2a644a0..0000000 --- a/.isort.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[isort] -multi_line_output = 3 -include_trailing_comma = True -force_grid_wrap = 0 -use_parentheses = True -ensure_newline_before_comments = True -line_length = 88 \ No newline at end of file diff --git a/frontend/urls.py b/frontend/urls.py index d9ac903..6d4ca73 100644 --- a/frontend/urls.py +++ b/frontend/urls.py @@ -10,7 +10,7 @@ # Checkout from frontend.views.cart.add_to_cart_view import AddToCart -from frontend.views.cart.approve_view import Approve +from frontend.views.proccess.approve_view import Approve from frontend.views.cart.cart_json_view import CartJson from frontend.views.cart.toko_transaksi_view import TransaksiToko from frontend.views.completepayment_view import CompletePayment diff --git a/frontend/views/cart/approve_view.py b/frontend/views/proccess/approve_view.py similarity index 100% rename from frontend/views/cart/approve_view.py rename to frontend/views/proccess/approve_view.py diff --git a/pyproject.toml b/pyproject.toml index d477a92..a7dfdea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,7 @@ dependencies = [ "deep-translator>=1.11.4", "django-ckeditor>=6.7.1", "django-cors-headers>=4.4.0", + "django-db-logger>=0.1.13", "django-filter>=24.3", "django-htmx>=1.19.0", "django-import-export>=4.1.1", @@ -39,4 +40,26 @@ dev-dependencies = [ "django-webpack-loader>=3.1.1", "flake8>=7.1.1", "isort>=5.13.2", + "ruff>=0.6.7", ] + +[tool.ruff] +# Maximum allowed line length +exclude = [ + "migrations", + "__pycache__", + "manage.py", + "settings.py", + "env", + ".env", + ".venv", +] +line-length = 120 +ignore = ["E501"] + +[tool.ruff.isort] +multi-line = "vertical" # Similar to multi_line_output = 3 (vertical grid) +include-trailing-comma = true +force-grid-wrap = 0 +use-parentheses = true +ensure-newline-before-comments = true diff --git a/uv.lock b/uv.lock index 1ed04e6..4602692 100644 --- a/uv.lock +++ b/uv.lock @@ -437,6 +437,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/9d/0c/4201d5650199b3a36ef3f2ab91f44c4527a70685f3003ce9f3ed8c30780c/django_cors_headers-4.4.0-py3-none-any.whl", hash = "sha256:5c6e3b7fe870876a1efdfeb4f433782c3524078fa0dc9e0195f6706ce7a242f6", size = 12789 }, ] +[[package]] +name = "django-db-logger" +version = "0.1.13" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "django" }, + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b9/4d/7a599b6c0c5ad63386ffff10b865e5729ba40a1fd49c8b152d71c62f7bb1/django-db-logger-0.1.13.tar.gz", hash = "sha256:a299a08638a741eb0b1d192f2a27eae57ed5118673c2aa916467f2e060c24e72", size = 10243 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/09/44/da602c708b8c12e6603f2e1429b670e2988823b0a194ad1b4bccb344a77e/django_db_logger-0.1.13-py3-none-any.whl", hash = "sha256:7a1741468c4dc5e7f7cb6f06e1981b16cedff81d3d04d8d926c82b814a247133", size = 8439 }, +] + [[package]] name = "django-extensions" version = "3.2.3" @@ -668,6 +681,7 @@ dependencies = [ { name = "django" }, { name = "django-ckeditor" }, { name = "django-cors-headers" }, + { name = "django-db-logger" }, { name = "django-filter" }, { name = "django-htmx" }, { name = "django-import-export" }, @@ -687,6 +701,7 @@ dependencies = [ { name = "pip" }, { name = "python-dotenv" }, { name = "redis" }, + { name = "ruff" }, { name = "stellar-sdk" }, ] @@ -706,6 +721,7 @@ requires-dist = [ { name = "django", specifier = "==5.1" }, { name = "django-ckeditor", specifier = ">=6.7.1" }, { name = "django-cors-headers", specifier = ">=4.4.0" }, + { name = "django-db-logger", specifier = ">=0.1.13" }, { name = "django-filter", specifier = ">=24.3" }, { name = "django-htmx", specifier = ">=1.19.0" }, { name = "django-import-export", specifier = ">=4.1.1" }, @@ -725,6 +741,7 @@ requires-dist = [ { name = "pip", specifier = ">=24.2" }, { name = "python-dotenv", specifier = ">=1.0.1" }, { name = "redis", specifier = ">=5.0.8" }, + { name = "ruff", specifier = ">=0.6.7" }, { name = "stellar-sdk", specifier = ">=11.0.0" }, ] @@ -1552,6 +1569,31 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/49/97/fa78e3d2f65c02c8e1268b9aba606569fe97f6c8f7c2d74394553347c145/rsa-4.9-py3-none-any.whl", hash = "sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7", size = 34315 }, ] +[[package]] +name = "ruff" +version = "0.6.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8d/7c/3045a526c57cef4b5ec4d5d154692e31429749a49810a53e785de334c4f6/ruff-0.6.7.tar.gz", hash = "sha256:44e52129d82266fa59b587e2cd74def5637b730a69c4542525dfdecfaae38bd5", size = 3073785 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/22/c4/1c5c636f83f905c537785016e9cdd7a36df53c025a2d07940580ecb37bcf/ruff-0.6.7-py3-none-linux_armv6l.whl", hash = "sha256:08277b217534bfdcc2e1377f7f933e1c7957453e8a79764d004e44c40db923f2", size = 10336748 }, + { url = "https://files.pythonhosted.org/packages/84/d9/aa15a56be7ad796f4d7625362aff588f9fc013bbb7323a63571628a2cf2d/ruff-0.6.7-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:c6707a32e03b791f4448dc0dce24b636cbcdee4dd5607adc24e5ee73fd86c00a", size = 9958833 }, + { url = "https://files.pythonhosted.org/packages/27/25/5dd1c32bfc3ad3136c8ebe84312d1bdd2e6c908ac7f60692ec009b7050a8/ruff-0.6.7-py3-none-macosx_11_0_arm64.whl", hash = "sha256:533d66b7774ef224e7cf91506a7dafcc9e8ec7c059263ec46629e54e7b1f90ab", size = 9633369 }, + { url = "https://files.pythonhosted.org/packages/0e/3e/01b25484f3cb08fe6fddedf1f55f3f3c0af861a5b5f5082fbe60ab4b2596/ruff-0.6.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:17a86aac6f915932d259f7bec79173e356165518859f94649d8c50b81ff087e9", size = 10637415 }, + { url = "https://files.pythonhosted.org/packages/8a/c9/5bb9b849e4777e0f961de43edf95d2af0ab34999a5feee957be096887876/ruff-0.6.7-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b3f8822defd260ae2460ea3832b24d37d203c3577f48b055590a426a722d50ef", size = 10097389 }, + { url = "https://files.pythonhosted.org/packages/52/cf/e08f1c290c7d848ddfb2ae811f24f445c18e1d3e50e01c38ffa7f5a50494/ruff-0.6.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9ba4efe5c6dbbb58be58dd83feedb83b5e95c00091bf09987b4baf510fee5c99", size = 10951440 }, + { url = "https://files.pythonhosted.org/packages/a2/2d/ca8aa0da5841913c302d8034c6de0ce56c401c685184d8dd23cfdd0003f9/ruff-0.6.7-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:525201b77f94d2b54868f0cbe5edc018e64c22563da6c5c2e5c107a4e85c1c0d", size = 11708900 }, + { url = "https://files.pythonhosted.org/packages/89/fc/9a83c57baee977c82392e19a328b52cebdaf61601af3d99498e278ef5104/ruff-0.6.7-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8854450839f339e1049fdbe15d875384242b8e85d5c6947bb2faad33c651020b", size = 11258892 }, + { url = "https://files.pythonhosted.org/packages/d3/a3/254cc7afef702c68ae9079290c2a1477ae0e81478589baf745026d8a4eb5/ruff-0.6.7-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2f0b62056246234d59cbf2ea66e84812dc9ec4540518e37553513392c171cb18", size = 12367932 }, + { url = "https://files.pythonhosted.org/packages/9f/55/53f10c1bd8c3b2ae79aed18e62b22c6346f9296aa0ec80489b8442bd06a9/ruff-0.6.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b1462fa56c832dc0cea5b4041cfc9c97813505d11cce74ebc6d1aae068de36b", size = 10838629 }, + { url = "https://files.pythonhosted.org/packages/84/72/fb335c2b25432c63d15383ecbd7bfc1915e68cdf8d086a08042052144255/ruff-0.6.7-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:02b083770e4cdb1495ed313f5694c62808e71764ec6ee5db84eedd82fd32d8f5", size = 10648824 }, + { url = "https://files.pythonhosted.org/packages/92/a8/d57e135a8ad99b6a0c6e2a5c590bcacdd57f44340174f4409c3893368610/ruff-0.6.7-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:0c05fd37013de36dfa883a3854fae57b3113aaa8abf5dea79202675991d48624", size = 10174368 }, + { url = "https://files.pythonhosted.org/packages/a7/6f/1a30a6e81dcf2fa9ff3f7011eb87fe76c12a3c6bba74db6a1977d763de1f/ruff-0.6.7-py3-none-musllinux_1_2_i686.whl", hash = "sha256:f49c9caa28d9bbfac4a637ae10327b3db00f47d038f3fbb2195c4d682e925b14", size = 10514383 }, + { url = "https://files.pythonhosted.org/packages/0b/25/df6f2575bc9fe43a6dedfd8dee12896f09a94303e2c828d5f85856bb69a0/ruff-0.6.7-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:a0e1655868164e114ba43a908fd2d64a271a23660195017c17691fb6355d59bb", size = 10902340 }, + { url = "https://files.pythonhosted.org/packages/68/62/f2c1031e2fb7b94f9bf0603744e73db4ef90081b0eb1b9639a6feefd52ea/ruff-0.6.7-py3-none-win32.whl", hash = "sha256:a939ca435b49f6966a7dd64b765c9df16f1faed0ca3b6f16acdf7731969deb35", size = 8448033 }, + { url = "https://files.pythonhosted.org/packages/97/80/193d1604a3f7d75eb1b2a7ce6bf0fdbdbc136889a65caacea6ffb29501b1/ruff-0.6.7-py3-none-win_amd64.whl", hash = "sha256:590445eec5653f36248584579c06252ad2e110a5d1f32db5420de35fb0e1c977", size = 9273543 }, + { url = "https://files.pythonhosted.org/packages/8e/a8/4abb5a9f58f51e4b1ea386be5ab2e547035bc1ee57200d1eca2f8909a33e/ruff-0.6.7-py3-none-win_arm64.whl", hash = "sha256:b28f0d5e2f771c1fe3c7a45d3f53916fc74a480698c4b5731f0bea61e52137c8", size = 8618044 }, +] + [[package]] name = "six" version = "1.16.0" From 3de681e03d6c669a1b71d1ef9619ecff6ed1c8a1 Mon Sep 17 00:00:00 2001 From: Roni Ahmadi Date: Fri, 27 Sep 2024 05:43:26 +0700 Subject: [PATCH 2/3] update uv --- requirements-dev.txt | 22 ++++++++++++++++++++++ requirements.txt | 3 +++ uv.lock | 4 ++-- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index d2a770c..c572020 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -200,6 +200,9 @@ django-ckeditor==6.7.1 \ django-cors-headers==4.4.0 \ --hash=sha256:92cf4633e22af67a230a1456cb1b7a02bb213d6536d2dcb2a4a24092ea9cebc2 \ --hash=sha256:5c6e3b7fe870876a1efdfeb4f433782c3524078fa0dc9e0195f6706ce7a242f6 +django-db-logger==0.1.13 \ + --hash=sha256:a299a08638a741eb0b1d192f2a27eae57ed5118673c2aa916467f2e060c24e72 \ + --hash=sha256:7a1741468c4dc5e7f7cb6f06e1981b16cedff81d3d04d8d926c82b814a247133 django-extensions==3.2.3 \ --hash=sha256:44d27919d04e23b3f40231c4ab7af4e61ce832ef46d610cc650d53e68328410a \ --hash=sha256:9600b7562f79a92cbf1fde6403c04fee314608fefbb595502e34383ae8203401 @@ -623,6 +626,25 @@ requests-sse==0.3.2 \ rsa==4.9 \ --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 \ --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 +ruff==0.6.7 \ + --hash=sha256:44e52129d82266fa59b587e2cd74def5637b730a69c4542525dfdecfaae38bd5 \ + --hash=sha256:08277b217534bfdcc2e1377f7f933e1c7957453e8a79764d004e44c40db923f2 \ + --hash=sha256:c6707a32e03b791f4448dc0dce24b636cbcdee4dd5607adc24e5ee73fd86c00a \ + --hash=sha256:533d66b7774ef224e7cf91506a7dafcc9e8ec7c059263ec46629e54e7b1f90ab \ + --hash=sha256:17a86aac6f915932d259f7bec79173e356165518859f94649d8c50b81ff087e9 \ + --hash=sha256:b3f8822defd260ae2460ea3832b24d37d203c3577f48b055590a426a722d50ef \ + --hash=sha256:9ba4efe5c6dbbb58be58dd83feedb83b5e95c00091bf09987b4baf510fee5c99 \ + --hash=sha256:525201b77f94d2b54868f0cbe5edc018e64c22563da6c5c2e5c107a4e85c1c0d \ + --hash=sha256:8854450839f339e1049fdbe15d875384242b8e85d5c6947bb2faad33c651020b \ + --hash=sha256:2f0b62056246234d59cbf2ea66e84812dc9ec4540518e37553513392c171cb18 \ + --hash=sha256:6b1462fa56c832dc0cea5b4041cfc9c97813505d11cce74ebc6d1aae068de36b \ + --hash=sha256:02b083770e4cdb1495ed313f5694c62808e71764ec6ee5db84eedd82fd32d8f5 \ + --hash=sha256:0c05fd37013de36dfa883a3854fae57b3113aaa8abf5dea79202675991d48624 \ + --hash=sha256:f49c9caa28d9bbfac4a637ae10327b3db00f47d038f3fbb2195c4d682e925b14 \ + --hash=sha256:a0e1655868164e114ba43a908fd2d64a271a23660195017c17691fb6355d59bb \ + --hash=sha256:a939ca435b49f6966a7dd64b765c9df16f1faed0ca3b6f16acdf7731969deb35 \ + --hash=sha256:590445eec5653f36248584579c06252ad2e110a5d1f32db5420de35fb0e1c977 \ + --hash=sha256:b28f0d5e2f771c1fe3c7a45d3f53916fc74a480698c4b5731f0bea61e52137c8 six==1.16.0 \ --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 diff --git a/requirements.txt b/requirements.txt index b6eef67..66241ae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -185,6 +185,9 @@ django-ckeditor==6.7.1 \ django-cors-headers==4.4.0 \ --hash=sha256:92cf4633e22af67a230a1456cb1b7a02bb213d6536d2dcb2a4a24092ea9cebc2 \ --hash=sha256:5c6e3b7fe870876a1efdfeb4f433782c3524078fa0dc9e0195f6706ce7a242f6 +django-db-logger==0.1.13 \ + --hash=sha256:a299a08638a741eb0b1d192f2a27eae57ed5118673c2aa916467f2e060c24e72 \ + --hash=sha256:7a1741468c4dc5e7f7cb6f06e1981b16cedff81d3d04d8d926c82b814a247133 django-filter==24.3 \ --hash=sha256:d8ccaf6732afd21ca0542f6733b11591030fa98669f8d15599b358e24a2cd9c3 \ --hash=sha256:c4852822928ce17fb699bcfccd644b3574f1a2d80aeb2b4ff4f16b02dd49dc64 diff --git a/uv.lock b/uv.lock index 4602692..2b3f7ae 100644 --- a/uv.lock +++ b/uv.lock @@ -701,7 +701,6 @@ dependencies = [ { name = "pip" }, { name = "python-dotenv" }, { name = "redis" }, - { name = "ruff" }, { name = "stellar-sdk" }, ] @@ -712,6 +711,7 @@ dev = [ { name = "django-webpack-loader" }, { name = "flake8" }, { name = "isort" }, + { name = "ruff" }, ] [package.metadata] @@ -741,7 +741,6 @@ requires-dist = [ { name = "pip", specifier = ">=24.2" }, { name = "python-dotenv", specifier = ">=1.0.1" }, { name = "redis", specifier = ">=5.0.8" }, - { name = "ruff", specifier = ">=0.6.7" }, { name = "stellar-sdk", specifier = ">=11.0.0" }, ] @@ -752,6 +751,7 @@ dev = [ { name = "django-webpack-loader", specifier = ">=3.1.1" }, { name = "flake8", specifier = ">=7.1.1" }, { name = "isort", specifier = ">=5.13.2" }, + { name = "ruff", specifier = ">=0.6.7" }, ] [[package]] From bb70a7d1aeba3a2c7249aa85b2e241ae13c87837 Mon Sep 17 00:00:00 2001 From: Roni Ahmadi Date: Fri, 27 Sep 2024 05:56:51 +0700 Subject: [PATCH 3/3] update uv --- pyproject.toml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a7dfdea..dd2b3c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ "pip>=24.2", "python-dotenv>=1.0.1", "redis>=5.0.8", - "stellar-sdk>=11.0.0", + "stellar-sdk>=11.0.0" ] [tool.uv] @@ -40,11 +40,10 @@ dev-dependencies = [ "django-webpack-loader>=3.1.1", "flake8>=7.1.1", "isort>=5.13.2", - "ruff>=0.6.7", + "ruff>=0.6.7" ] [tool.ruff] -# Maximum allowed line length exclude = [ "migrations", "__pycache__", @@ -52,14 +51,7 @@ exclude = [ "settings.py", "env", ".env", - ".venv", + ".venv" ] line-length = 120 ignore = ["E501"] - -[tool.ruff.isort] -multi-line = "vertical" # Similar to multi_line_output = 3 (vertical grid) -include-trailing-comma = true -force-grid-wrap = 0 -use-parentheses = true -ensure-newline-before-comments = true