Skip to content

Commit 7a51a15

Browse files
committed
Rename TEMPORARY_VARIABLE to TEMP_VAR in violation codes
1 parent a581e12 commit 7a51a15

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/community_of_python_flake8_plugin/checks/temp_var.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _check_temporary_variables(self, ast_node: ast.FunctionDef | ast.AsyncFuncti
8585
Violation(
8686
line_number=first_usage.lineno,
8787
column_number=first_usage.col_offset,
88-
violation_code=ViolationCodes.TEMPORARY_VARIABLE,
88+
violation_code=ViolationCodes.TEMP_VAR,
8989
)
9090
)
9191
found_temporary_variable = True

src/community_of_python_flake8_plugin/violation_codes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ViolationCodes:
3737
ASYNC_GET_PREFIX = ViolationCodeItem(code="COP006", description="Avoid get_ prefix in async function names")
3838

3939
# Variable usage violations
40-
TEMPORARY_VARIABLE = ViolationCodeItem(code="COP007", description="Inline variables that are used only once")
40+
TEMP_VAR = ViolationCodeItem(code="COP007", description="Inline variables that are used only once")
4141

4242
# Class related violations
4343
FINAL_CLASS = ViolationCodeItem(code="COP008", description="Classes must be marked final with @typing.final")

0 commit comments

Comments
 (0)