Skip to content

Added .gitignore and .editorconfig files #15

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 6 commits into from
Closed

Added .gitignore and .editorconfig files #15

wants to merge 6 commits into from

Conversation

pritamnegi
Copy link
Contributor

#13

Copy link
Contributor

@satwikkansal satwikkansal left a comment

Choose a reason for hiding this comment

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

Nice works, few comments.

Ping once addressed, and we're good to go!

/site

# mypy
.mypy_cache/
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a newline at the end. It's a common standard to end files with a newline. https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline

.editorconfig Outdated
insert_final_newline = true

# 4 space indentation
[*.{ini,py,py.tpl,rst}]
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have any ini or .tpl or .rst files currently in the project.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please cross check what all files do we have currently in the repo, and adapt accordingly

.editorconfig Outdated
indent_size = 4

# 4-width tabbed indentation
[*.{sh,bat.tpl,Makefile.tpl}]
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, there are no such files present. We can add such entries later once we have these files in the codebase. I hope you get the idea :)

@satwikkansal
Copy link
Contributor

It seems that your commit message doesn't contain enough information. Don't worry, most people don't know about good commit messages initially, including very experienced developers :) Standards vary from project to project.

The most important part is the first line of your commit message - we can use it to read through a large number of commits and thus it's important that it's short but most importantly concise. I'd heartily recommend reading http://coala.io/commit !

To change your message you just use git commit --amend and then git push --force the new commit to replace the old one.

Cheers!

@pritamnegi
Copy link
Contributor Author

Please now review my PR. I have made the changes requested by mentors.

Copy link
Contributor

@satwikkansal satwikkansal left a comment

Choose a reason for hiding this comment

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

A couple of changes in .editorconfig. Otherwise we're good to go 👍

@@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need this line :p

[*.{py}]
indent_style = space
indent_size = 4

Copy link
Contributor

Choose a reason for hiding this comment

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

This is one extra line than blank line :)

@satwikkansal
Copy link
Contributor

Also, did you see #15 (comment) ?

@pritamnegi
Copy link
Contributor Author

In what way I should change my commit message??

@satwikkansal
Copy link
Contributor

Commit 1

.editorconfig: Add .editorconfig

Adds the .editorconfig file for the project.

Related to https://github.com/wtfpython-web/wtfpython-web/issues/13

Commit 2

.gitignore: Add .gitignore

Adds the .gitignore file for the project referenced from https://github.com/github/gitignore/blob/master/Python.gitignore

Closes https://github.com/wtfpython-web/wtfpython-web/issues/13

@realslimshanky
Copy link

@pritamnegi I suggest you take a look at Github's gitignore as well to check if we need something more for our project. Also, make sure your PR description is informative enough.

@pritamnegi
Copy link
Contributor Author

Ok as you say @realslimshanky

@pritamnegi pritamnegi closed this Jun 26, 2018
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.

3 participants