From 4d7fe23675bf1091238acabd4d315b5700d55f48 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Tue, 16 Jan 2024 17:20:37 +0000 Subject: [PATCH] Bump Django to 4.2.9, replace dev dependencies ruff --- .github/workflows/py-linter.yml | 15 ++------------- .pre-commit-config.yaml | 2 +- requirements.txt | 2 +- requirements_dev.txt | 5 +---- 4 files changed, 5 insertions(+), 19 deletions(-) diff --git a/.github/workflows/py-linter.yml b/.github/workflows/py-linter.yml index b1754897..cceada2d 100644 --- a/.github/workflows/py-linter.yml +++ b/.github/workflows/py-linter.yml @@ -26,16 +26,5 @@ jobs: with: python-version: '3.12' cache: pip - - run: pip install -r requirements_dev.txt - - name: Run linters - uses: wearerequired/lint-action@v2 - with: - auto_fix: true - git_name: "Python Lint Action" - commit_message: "Fix code style issues with ${linter}" - commit: false - neutral_check_on_warning: true - black: true - flake8: true - # Flake8 doesn't support auto-fixing - flake8_auto_fix: false + - name: Ruff + uses: chartboost/ruff-action@v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5887c50c..dfd3b039 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,7 +48,7 @@ repos: types_or: [javascript, jsx, ts, tsx, css, markdown, json] # uses https://github.com/pre-commit/identify entry: bash -c 'cd mobile && npm run format' - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.11 + rev: v0.1.13 hooks: - id: ruff stages: diff --git a/requirements.txt b/requirements.txt index cd970fd4..ab182e13 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -django==4.2.7 +django==4.2.9 django-admin-relation-links==0.2.5 django-celery-beat==2.5.0 django-celery-results==2.5.1 diff --git a/requirements_dev.txt b/requirements_dev.txt index a3604fdc..1937c770 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,7 +1,4 @@ coverage==7.4.0 -black==23.3.0 -isort==5.13.2 -flake8==7.0.0 -pyflakes==3.2.0 +ruff==0.1.13 drf-openapi-tester==2.3.3 pre-commit==3.6.0 \ No newline at end of file