Skip to content

Commit 130f96e

Browse files
committed
Normalize language enum casing
Updated the LanguageId enum values to use consistent lowercase casing. This change affects the Java and Python IJ Inspectors to align with the new enum definitions.
1 parent 0d5905f commit 130f96e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

hyperstyle/src/python/review/inspectors/common/inspector/proto/model.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ service CodeInspectionService {
99
}
1010

1111
enum LanguageId {
12-
Python = 0;
12+
python = 0;
1313
kotlin = 1;
14-
Java = 2;
14+
java = 2;
1515
}
1616

1717
message Code {

hyperstyle/src/python/review/inspectors/ij_java/ij_java.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class JavaIJInspector(BaseIJInspector):
1414
inspector_type = InspectorType.IJ_JAVA
15-
language_id = model_pb2.LanguageId.Java
15+
language_id = model_pb2.LanguageId.java
1616
issue_configs = ISSUE_CONFIGS
1717
ij_inspection_to_issue_type = IJ_INSPECTION_TO_ISSUE_TYPE
1818
ij_message_to_issue_type = IJ_MESSAGE_TO_ISSUE_TYPE

hyperstyle/src/python/review/inspectors/ij_python/ij_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class PythonIJInspector(BaseIJInspector):
1414
inspector_type = InspectorType.IJ_PYTHON
15-
language_id = model_pb2.LanguageId.Python
15+
language_id = model_pb2.LanguageId.python
1616
issue_configs = ISSUE_CONFIGS
1717
ij_inspection_to_issue_type = IJ_INSPECTION_TO_ISSUE_TYPE
1818
ij_message_to_issue_type = IJ_MESSAGE_TO_ISSUE_TYPE

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hyperstyle"
3-
version = "1.6.3"
3+
version = "1.7.0"
44
description = "A tool for running a set of pre-configured linters and evaluating code quality."
55
authors = ["Hyperskill Team"]
66
readme = "README.md"

0 commit comments

Comments
 (0)