CI: Rename validate_string_concatenation.py to `validate_unwanted_p… · pandas-dev/pandas@bbfecaf (original) (raw)

3 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -102,17 +102,17 @@ if [[ -z "$CHECK" | "$CHECK" == "lint" ]]; then
102 102
103 103 MSG='Check for use of not concatenated strings' ; echo $MSG
104 104 if [[ "$GITHUB_ACTIONS" == "true" ]]; then
105 -$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_to_concatenate" --format="##[error]{source_path}:{line_number}:{msg}" .
105 +$BASE_DIR/scripts/validate_unwanted_patterns.py --validation-type="strings_to_concatenate" --format="##[error]{source_path}:{line_number}:{msg}" .
106 106 else
107 -$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_to_concatenate" .
107 +$BASE_DIR/scripts/validate_unwanted_patterns.py --validation-type="strings_to_concatenate" .
108 108 fi
109 109 RET=$(($RET + ?));echo?)) ; echo ?));echoMSG "DONE"
110 110
111 111 MSG='Check for strings with wrong placed spaces' ; echo $MSG
112 112 if [[ "$GITHUB_ACTIONS" == "true" ]]; then
113 -$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_with_wrong_placed_whitespace" --format="##[error]{source_path}:{line_number}:{msg}" .
113 +$BASE_DIR/scripts/validate_unwanted_patterns.py --validation-type="strings_with_wrong_placed_whitespace" --format="##[error]{source_path}:{line_number}:{msg}" .
114 114 else
115 -$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_with_wrong_placed_whitespace" .
115 +$BASE_DIR/scripts/validate_unwanted_patterns.py --validation-type="strings_with_wrong_placed_whitespace" .
116 116 fi
117 117 RET=$(($RET + ?));echo?)) ; echo ?));echoMSG "DONE"
118 118
Original file line number Diff line number Diff line change
@@ -2,10 +2,7 @@
2 2
3 3 import pytest
4 4
5 -# TODO: change this import to "import validate_unwanted_patterns"
6 -# when renaming "scripts/validate_string_concatenation.py" to
7 -# "scripts/validate_unwanted_patterns.py"
8 -import validate_string_concatenation as validate_unwanted_patterns
5 +import validate_unwanted_patterns
9 6
10 7
11 8 class TestBarePytestRaises:

File renamed without changes.