Skip to content

Added option to ignore file paths #33479

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

Closed
wants to merge 8 commits into from

Conversation

ShaharNaveh
Copy link
Member

This is needed both for #32942 and to #33394 to ignore the pandas/tests directory

@alimcmaster1
Copy link
Member

If you merge master test failures will be resolved

for file_name in files:
if not any(
file_name.endswith(extension) for extension in FILE_EXTENSIONS_TO_CHECK
):
continue

file_path = os.path.join(subdir, file_name)
with open(file_path, "r") as file_obj:
with open(file_path, mode="r") as file_obj:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is making "mode" explicit necesary? its not a pattern we used elsewhere

parser.add_argument(
"--excluded-file-paths",
default="asv_bench/env",
help="Coma seperated file extensions to check.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coma -> Comma (i hope)
seperated -> separated

looks like both of these need fixing on L395 too

@jreback jreback added CI Continuous Integration Code Style Code style, linting, code_checks and removed CI Continuous Integration labels Apr 17, 2020
@jreback jreback added this to the 1.1 milestone Apr 17, 2020
@ShaharNaveh
Copy link
Member Author

Sorry, I got into other obligation in the past week and a half, I'll try to finish what I started as much as I can.

@jreback
Copy link
Contributor

jreback commented Jun 14, 2020

can you merge master

@jreback jreback removed this from the 1.1 milestone Jul 10, 2020
@jreback
Copy link
Contributor

jreback commented Jul 10, 2020

closing as stale, if you want to continue pls ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants