Skip to content
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

Use pathlib in autogen_config #12629

Closed
wants to merge 2 commits into from
Closed

Use pathlib in autogen_config #12629

wants to merge 2 commits into from

Conversation

kugiyasan
Copy link

Completely replaced os with Path, like asked in #12515
#12614 already changed the with open() to Path, and I went a bit deeper.

The new line 114 behaves a little bit differently than the older, the output file will have a newline after app.document_config_options()

@ChiefsBestPal
Copy link

Linter effective

@kugiyasan
Copy link
Author

@Carreau What is happening? I'm very new to PRs, so I don't understand what is going on with that force-push. A friend told me to pull the changes into my fork, but what should I do now?

@Carreau
Copy link
Member

Carreau commented Oct 26, 2020

@Carreau What is happening? I'm very new to PRs, so I don't understand what is going on with that force-push. A friend told me to pull the changes into my fork, but what should I do now?

Sorry, I've been busy trying to review all the PRs, do not worry about the force-push, it's something that github warns about that it use to not to before.

Usually when "pushing" you can only add new commits, when force-pushing you (and in the above case me) replaced an already existing commit. that happens for example when you rewrite git history if someone for example commited a password and you want to remove it.

for c in app._classes_inc_parents():
f.write(class_config_rst_doc(c, trait_aliases))
f.write('\n')
filename.write_text("\n".join(text))
Copy link
Member

Choose a reason for hiding this comment

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

I'm not quite sure all those are correct, as write likely does not happend \n, but '\n'.join() does, so this will not be strictly identical.

Copy link
Author

Choose a reason for hiding this comment

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

Alright, can you revert back that change?

Copy link
Member

Choose a reason for hiding this comment

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

yes, I can do that.

@Carreau Carreau deleted the branch ipython:master August 15, 2022 14:06
@Carreau Carreau closed this Aug 15, 2022
@Carreau Carreau added this to the no action milestone Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants