Skip to content

Commit 00e9e04

Browse files
debrittoclaude
andcommitted
Corrige ordenação de imports acusada pelo lint
Os blocos de import de template_loader, validator e test_cli ficaram fora de ordem ao receber os símbolos novos (IndexOnEnumeratedValue, OrderedValueAsLabel, normalize_label) — I001 no ruff. Inclui também check_ready.py, que estava fora de ordem desde antes desta série: o CI roda `ruff check synesis/`, então um arquivo na raiz nunca entrou no escopo. Com ele, `ruff check .` passa limpo localmente. Sem mudança de comportamento; 531 testes passando. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 02435c1 commit 00e9e04

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

check_ready.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
python check_ready.py
1010
"""
1111

12-
import sys
1312
import subprocess
13+
import sys
1414
from pathlib import Path
1515
from typing import List, Tuple
1616

synesis/parser/template_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
ChainWithoutArity,
4040
DuplicateValue,
4141
EnumeratedWithoutValues,
42-
IndexOnEnumeratedValue,
4342
FieldScopeListMismatch,
4443
FormatOnNonScale,
44+
IndexOnEnumeratedValue,
4545
InvalidArityOperator,
4646
InvalidFormatSyntax,
4747
LinkageModifierOutsideSource,

synesis/semantic/validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363
InvalidFieldType,
6464
InvalidIdentifierCharacter,
6565
InvalidOrderedValue,
66-
OrderedValueAsLabel,
6766
MalformedQualifiedChain,
6867
MissingBibliographyValue,
6968
MissingBundleField,
7069
MissingDatasetValue,
7170
MissingRequiredField,
7271
OntologyWithoutTemplateFields,
72+
OrderedValueAsLabel,
7373
QualifiedChainWithoutRelations,
7474
ScaleOutOfRange,
7575
SimpleChainWithRelationsRequired,

tests/test_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class TestRepeatedDiagnosticCollapse:
6969

7070
def _err(self, file: str, line: int, msg: str):
7171
from pathlib import Path
72+
7273
from synesis.ast.nodes import SourceLocation
7374

7475
class _Diag:
@@ -84,6 +85,7 @@ def to_cli_line(self):
8485
def _capture(self, errors):
8586
import click
8687
from click.testing import CliRunner
88+
8789
from synesis.cli import _print_diagnostics
8890

8991
@click.command()

0 commit comments

Comments
 (0)