Tools/ss14_ru QOL (#3298)

This commit is contained in:
mhamster
2025-07-24 10:36:17 +07:00
committed by GitHub
parent baf4811805
commit 0df07b9d48
18 changed files with 30 additions and 18 deletions

View File

@@ -1 +1 @@
from fluentformatter import FluentFile, FluentFormatter
from fluentformatter import FluentFile, FluentFormatter

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env python3
import os
import re
import chardet

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env python3
import os
import logging
from datetime import datetime

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env python3
import os
import re

View File

@@ -1,4 +1,4 @@
import typing
import typing
from fluent.syntax import ast
from yamlmodels import YAMLElements

View File

@@ -1,4 +1,4 @@
import typing
import typing
from fluent.syntax import ast, FluentParser, FluentSerializer
from lokalisemodels import LokaliseKey

View File

@@ -1,4 +1,4 @@
from fluent.syntax import ast
from fluent.syntax import ast
from fluentast import FluentAstAbstract
from pydash import py_

View File

@@ -1,4 +1,4 @@
from fluent.syntax import ast
from fluent.syntax import ast
from fluentast import FluentAstAbstract

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3
# Форматтер, приводящий fluent-файлы (.ftl) в соответствие стайлгайду
# path - путь к папке, содержащий форматируемые файлы. Для форматирования всего проекта, необходимо заменить значение на root_dir_path

View File

@@ -1,4 +1,6 @@
import typing
#!/usr/bin/env python3
import typing
import logging
from pydash import py_

View File

@@ -1,4 +1,4 @@
from fluent.syntax import ast
from fluent.syntax import ast
from fluentast import FluentAstMessage
from fluentastcomparer import FluentAstComparer

View File

@@ -1,4 +1,4 @@
import lokalise
import lokalise
import typing
from lokalisemodels import LokaliseKey
from pydash import py_

View File

@@ -1,4 +1,4 @@
import typing
import typing
import os
from pydash import py_
from project import Project

View File

@@ -1,4 +1,4 @@
import pathlib
import pathlib
import os
import glob
from file import FluentFile

View File

@@ -1,5 +1,5 @@
fluent==0.10.0
pydash==8.0.1
PyYAML==6.0.1
chardet==5.2.0
fluent==0.10.0
pydash==8.0.5
typing_extensions==4.9.0
chardet
PyYAML==6.0.2

View File

@@ -1,4 +1,6 @@
import logging
#!/usr/bin/env python3
import logging
import typing
from fluent.syntax import FluentParser, FluentSerializer

View File

@@ -1,4 +1,6 @@
import os
#!/usr/bin/env python3
import os
from fluent.syntax.parser import FluentParser
from fluent.syntax.serializer import FluentSerializer

View File

@@ -1,4 +1,4 @@
class YAMLEntity:
class YAMLEntity:
def __init__(self, id, name, description, suffix, parent_id = None):
self.id = id
self.name = name