update python dependencies

This commit is contained in:
Ivan 2025-10-23 17:28:43 +03:00
parent 2e085ccb87
commit 5f767ea26f
6 changed files with 24 additions and 28 deletions

View File

@ -185,6 +185,7 @@
"Акименков", "Акименков",
"Астрина", "Астрина",
"Атрибутирование", "Атрибутирование",
"Атрибутирования",
"Атрибутирующая", "Атрибутирующая",
"Атрибутирующие", "Атрибутирующие",
"Ашихмин", "Ашихмин",

View File

@ -72,7 +72,7 @@ ignored-modules=
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use, and will cap the count on Windows to # number of processors available to use, and will cap the count on Windows to
# avoid hangs. # avoid hangs.
jobs=1 jobs=0
# Control the amount of potential inferred values when inferring a single # Control the amount of potential inferred values when inferring a single
# object. This can help the performance when dealing with large functions or # object. This can help the performance when dealing with large functions or
@ -88,7 +88,7 @@ persistent=yes
# Minimum Python version to use for version dependent checks. Will default to # Minimum Python version to use for version dependent checks. Will default to
# the version used to run pylint. # the version used to run pylint.
py-version=3.9 py-version=3.10
# Discover python modules and packages in the file system subtree. # Discover python modules and packages in the file system subtree.
recursive=no recursive=no
@ -99,10 +99,6 @@ recursive=no
# source root. # source root.
source-roots= source-roots=
# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages.
suggestion-mode=yes
# Allow loading of arbitrary C extensions. Extensions are imported into the # Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code. # active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no unsafe-load-any-extension=no

View File

@ -25,7 +25,7 @@ class Layout(Model):
return f'Схема расположения {self.oss.alias}' return f'Схема расположения {self.oss.alias}'
@staticmethod @staticmethod
def update_data(itemID: int, data: dict) -> None: def update_data(itemID: int, data: list) -> None:
''' Update layout data. ''' ''' Update layout data. '''
layout = Layout.objects.get(oss_id=itemID) layout = Layout.objects.get(oss_id=itemID)
layout.data = data layout.data = data

View File

@ -1,21 +1,21 @@
tzdata==2025.2 tzdata==2025.2
Django==5.2.4 Django==5.2.7
djangorestframework==3.16.0 djangorestframework==3.16.1
django-cors-headers==4.7.0 django-cors-headers==4.9.0
django-filter==25.1 django-filter==25.2
drf-spectacular==0.28.0 drf-spectacular==0.28.0
drf-spectacular-sidecar==2025.7.1 drf-spectacular-sidecar==2025.10.1
coreapi==2.3.3 coreapi==2.3.3
django-rest-passwordreset==1.5.0 django-rest-passwordreset==1.5.0
cctext==0.1.4 cctext==0.1.4
pyconcept==0.1.12 pyconcept==0.1.12
psycopg2-binary==2.9.10 psycopg2-binary==2.9.11
gunicorn==23.0.0 gunicorn==23.0.0
djangorestframework-stubs==3.16.0 djangorestframework-stubs==3.16.5
django-extensions==4.1 django-extensions==4.1
django-stubs==5.2.1 django-stubs==5.2.7
mypy==1.15.0 mypy==1.18.2
pylint==3.3.7 pylint==4.0.2
coverage==7.9.2 coverage==7.11.0

View File

@ -1,14 +1,14 @@
tzdata==2025.2 tzdata==2025.2
Django==5.2.4 Django==5.2.7
djangorestframework==3.16.0 djangorestframework==3.16.1
django-cors-headers==4.7.0 django-cors-headers==4.9.0
django-filter==25.1 django-filter==25.2
drf-spectacular==0.28.0 drf-spectacular==0.28.0
drf-spectacular-sidecar==2025.7.1 drf-spectacular-sidecar==2025.10.1
coreapi==2.3.3 coreapi==2.3.3
django-rest-passwordreset==1.5.0 django-rest-passwordreset==1.5.0
cctext==0.1.4 cctext==0.1.4
pyconcept==0.1.12 pyconcept==0.1.12
psycopg2-binary==2.9.10 psycopg2-binary==2.9.11
gunicorn==23.0.0 gunicorn==23.0.0

View File

@ -1,6 +1,6 @@
'use client'; 'use client';
import { useCallback, useRef, useState } from 'react'; import { useRef, useState } from 'react';
import { toast } from 'react-toastify'; import { toast } from 'react-toastify';
import { type ReactCodeMirrorRef } from '@uiw/react-codemirror'; import { type ReactCodeMirrorRef } from '@uiw/react-codemirror';
@ -71,11 +71,10 @@ export function EditorRSExpression({
const { checkConstituenta: checkInternal, isPending } = useCheckConstituenta(); const { checkConstituenta: checkInternal, isPending } = useCheckConstituenta();
const resetCallback = useCallback(() => { useResetOnChange([activeCst, toggleReset], () => {
setIsModified(false); setIsModified(false);
setParseData(null); setParseData(null);
}, []); });
useResetOnChange([activeCst, toggleReset], resetCallback);
function checkConstituenta( function checkConstituenta(
expression: string, expression: string,