Skip to content

Add .DS_Store, *.swp, and .incremental_checker_cache.json to gitignore #1950

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

Merged
merged 1 commit into from
Jul 28, 2016

Conversation

Michael0x2a
Copy link
Collaborator

.DS_Store appears on Macs, *.swp is a temporary file Vim creates when
editing a file, and .incremental_checker_cache.json should probably be
ignored for the same reason .mypy_cache/ should be ignored.

.DS_Store appears on Macs, *.swp is a temporary file Vim creates when
editing a file, and .incremental_checker_cache.json should probably be
ignored for the same reason .mypy_cache/ should be ignored.
@gvanrossum
Copy link
Member

Did you know you can create a personal global .gitignore? I have this in ~/.gitconfig:

[core]
    excludesfile = /Users/guido/.gitignore_global

and a series of personal excludes in ~/.gitignore_global.

Ideally a project's local .gitignore should only contain files that are specific by-products of the tools that are part of the project's build flows. In this case I think .incremental_checker_cache.json belongs in mypy's .gitignore but not .swp or .DS_Store.

There are a bunch of other lines in mypy's .gitignore that ought to be deleted (probably most, actually).

@gvanrossum gvanrossum merged commit 9ac8bf7 into python:master Jul 28, 2016
@Michael0x2a Michael0x2a deleted the modify-gitignore branch August 15, 2016 22:17
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