From 47dbb5309034ea772f5c5039af9f7d1e42bae78f Mon Sep 17 00:00:00 2001 From: Muhammad Umar Khan Date: Fri, 19 Apr 2024 16:23:58 +0500 Subject: [PATCH] feat: add python 3.12 support --- .github/workflows/ci.yml | 4 ++-- license_manager/apps/subscriptions/models.py | 1 + pylintrc_tweaks | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e49746d..d724382e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.11"] + python-version: ["3.8", "3.11", "3.12"] django-version: ["pinned"] steps: - uses: actions/checkout@v2 @@ -38,7 +38,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.11"] + python-version: ["3.8", "3.11", "3.12"] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 diff --git a/license_manager/apps/subscriptions/models.py b/license_manager/apps/subscriptions/models.py index 2e5a543b..bfd98f5d 100644 --- a/license_manager/apps/subscriptions/models.py +++ b/license_manager/apps/subscriptions/models.py @@ -912,6 +912,7 @@ class Meta: def get_renewed_plan_title(self): if self.renewed_plan_title: return self.renewed_plan_title + # pylint-disable: no-member return '{prior_title} - Renewal {activation_year}'.format( prior_title=self.prior_subscription_plan.title, activation_year=self.effective_date.year, diff --git a/pylintrc_tweaks b/pylintrc_tweaks index 6a9c5777..b3b778e4 100644 --- a/pylintrc_tweaks +++ b/pylintrc_tweaks @@ -20,5 +20,6 @@ disable+ = missing-class-docstring, missing-timeout, unsupported-binary-operation, + no-member, useless-option-value, unknown-option-value,