-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Unify code_checks whitespace checking #30755
Merged
datapythonista
merged 108 commits into
pandas-dev:master
from
ShaharNaveh:CI-unify-boilerplate
Mar 23, 2020
Merged
Changes from 98 commits
Commits
Show all changes
108 commits
Select commit
Hold shift + click to select a range
d16e566
CI: Unify tests cases
6e6bb66
Changed functions name
48f3e86
Renamed file name, back to the original
2e249a8
STY: inconsistent linebreaks
f611e26
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
4ec704c
Made the code check "ID" to be more verbose
8b2f603
Added ".py" in ci/code_check.sh to the script call
63dbeb7
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
bb5b905
Replaced the dictonary with 'globals()'
2225175
Changed from "id" to "validation-type"
a2b60c5
Better explained (I hope) why this file exists
590ca48
Yielding the string directly instead of assigning it to a variable
ef00c68
Fixed indentation in docs
9341623
Imporved docstring for spaces test case, as datapythonista suggested
c0f800d
Removed uppercase "MSG" from docs and replaced it with lowercase "msg"
63b39dd
Fixed comment placement
2b61e53
Applied datapythonista suggestions
e18efbb
Moved "main" function to the bottom (Above 'if __name__ == "__main__"')
68c79d1
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
b60f5ee
Imporved test case in 'strings_with_wrong_placed_space' validation type
a4ec49e
Added more logic to 'strings_with_wrong_placed_space'
6718bb8
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
8dccf05
Added some typings
84c7125
Defining 'TYPE' as constant
b623c2f
Added 'continue' for code block
74c1abb
Added comment about token.NEWLINE
a1e1833
Applied datapythonsita code suggestion
052102e
Replaced available_validation_types with predefined list of available…
b784985
Make the validation type parameter to be required
09ec060
Added 'VALUE' constant
4793526
Fixed grammer mistake (I think)
60614c7
Removed complex if statement, Replaced with a function
7c87685
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
3904888
Removed useless parenthasis
48762f9
Fix tests case for 'strings_with_wrong_placed_space'
b1ac49e
Removed constants and replaced with values from the generated named t…
f9add47
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
c83aeb6
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
eef1062
Fixed CI-test for 'strings_with_wrong_placed_space'
b66705e
Activating "strings_with_wrong_placed_space" in the CI
0419125
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
1b5ce95
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
f77ed82
Refactored the function that check the unwanted patterns of the wrong…
93c6543
Added docs
256ae10
Changed function name
4822615
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
a67c60a
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
7f4a579
Rearanged functions in alphabetical order
88e09d1
Renamed strings_with_wrong_placed_space --> strings_with_wrong_placed…
fc24720
Fixed bug where not report wrong placed whitespace if string had a pr…
07c4446
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
e4957db
Changed validation-type call name in the CI as well
2f83a99
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
b206569
Eleborate more about bare_pytest_raises error message
9feac86
Removed empty line below 'Examples'
11b0a3b
Renamed "whitespace_validation" function to --> "has_wrong_whitespaces"
3b2de94
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
d1a6182
Removed useless function, with a brilliant idea
de7ded0
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
7ce199f
Refactored the validation-type functions, to get a file object
4678174
Moved the "readline" to the function itself.
68bbe58
Added some sample tests
f3b7c02
Changed functions names in the sample test
886195c
Changed the names of the test functions as well
9839384
Refactored tests
8263c2b
Added tests to TestStringsToConcatenate
5b0ce29
Fixed typing
02aa4ce
Added tests for TestStringsWithWrongPlacedWhitespace
b2d2d62
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
952721f
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
caa1bed
Changed paramerter description of "file_obj"
5e1d723
Fixed typo
da9d4f9
Refactored test to use "pytest.mark.parametrize"
b5361f7
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
4cc1aee
Added edge cases tests "for bare_pytest_raises"
796550e
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
ddccb5b
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
e82599d
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
740fbf0
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
49445eb
Type annotations
74e5548
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
66bc298
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
6a0f45d
Making a function for getting the literal string prefix length
2cb32d8
Calling io.StringIO inside the bare_pytests_raises tests
c98a3a4
Calling io.StringIO inside the strings_to_concatenate and strings_wit…
6b8bc43
Changed comment to something more clear
95f2275
Unify bare_pytest_raises tests
4a00e51
Unify strings_to_concatenate and strings_with_wrong_placed_whitespace…
4a01f6f
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
289c667
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
b96d8ca
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
7f1c88a
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
421ffa6
Seperated test case
7cbde16
Splitted test cases
a2a12fc
Update scripts/validate_string_concatenation.py
ShaharNaveh ff6ba11
Typing change as @WillAyd suggested
b1568f1
Reverted a2a12fc39417721c5722e0fb9fbe17aff698e556
9ef9db7
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
32a715d
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
460be1a
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
7fa0c5a
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
f7f4342
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
d0e606f
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
c7d9d52
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
c672375
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
0ba7539
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
81990ca
Merge remote-tracking branch 'upstream/master' into CI-unify-boilerplate
f2897f5
Merge branch 'master' into CI-unify-boilerplate
ShaharNaveh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity, what does the
##
here mean?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full disclosure I have no clue, I asked @datapythonista for the output format that it should be outputted when running on
github-actions
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a convention in GitHub Actions. Any row in the output that starts with
##[error]
is highlighted as an error, and it's easier to find in the logs.