From 507d925362b9acc1451db7a331b0881c98f6d5dd Mon Sep 17 00:00:00 2001 From: Hofer-Julian Date: Fri, 3 Nov 2023 14:55:53 +0100 Subject: [PATCH] Enforce new language syntax with pyupgrade rule --- qgis/resources.py | 2 -- ruff.toml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/qgis/resources.py b/qgis/resources.py index a87374c6b..6a557b860 100644 --- a/qgis/resources.py +++ b/qgis/resources.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) diff --git a/ruff.toml b/ruff.toml index 15303116e..45fbc6994 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,5 +1,5 @@ # See https://docs.astral.sh/ruff/rules/ -select = ["C4", "D2", "D3", "D4", "E", "F", "I", "NPY", "PD"] +select = ["C4", "D2", "D3", "D4", "E", "F", "I", "NPY", "PD", "UP"] ignore = [ "D202", "D205",