Skip to content

Commit

Permalink
Merge pull request #9 from roniahmadi/main
Browse files Browse the repository at this point in the history
updating ruff
  • Loading branch information
roniahmadi authored Sep 26, 2024
2 parents 1b6dbc5 + bb70a7d commit 832dbc6
Show file tree
Hide file tree
Showing 14 changed files with 102 additions and 109 deletions.
11 changes: 0 additions & 11 deletions .flake8

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/black.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/deploy_toserver_production.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/deploy_toserver_test.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/flake8.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/isort .yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -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 .
7 changes: 0 additions & 7 deletions .isort.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
17 changes: 16 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -29,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]
Expand All @@ -39,4 +40,18 @@ dev-dependencies = [
"django-webpack-loader>=3.1.1",
"flake8>=7.1.1",
"isort>=5.13.2",
"ruff>=0.6.7"
]

[tool.ruff]
exclude = [
"migrations",
"__pycache__",
"manage.py",
"settings.py",
"env",
".env",
".venv"
]
line-length = 120
ignore = ["E501"]
22 changes: 22 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
42 changes: 42 additions & 0 deletions uv.lock

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

0 comments on commit 832dbc6

Please sign in to comment.