* Adds default gitignore options for a Python project based on * https://github.com/github/gitignore/blob/master/Python.gitignore
()
| 482 | * https://github.com/github/gitignore/blob/master/Python.gitignore |
| 483 | */ |
| 484 | private addDefaultGitIgnore() { |
| 485 | this.gitignore.exclude( |
| 486 | "# Byte-compiled / optimized / DLL files", |
| 487 | "__pycache__/", |
| 488 | "*.py[cod]", |
| 489 | "*$py.class", |
| 490 | "", |
| 491 | "# C extensions", |
| 492 | "*.so", |
| 493 | "", |
| 494 | "# Distribution / packaging", |
| 495 | ".Python", |
| 496 | "build/", |
| 497 | "develop-eggs/", |
| 498 | "dist/", |
| 499 | "downloads/", |
| 500 | "eggs/", |
| 501 | ".eggs/", |
| 502 | "lib/", |
| 503 | "lib64/", |
| 504 | "parts/", |
| 505 | "sdist/", |
| 506 | "var/", |
| 507 | "wheels/", |
| 508 | "share/python-wheels/", |
| 509 | "*.egg-info/", |
| 510 | ".installed.cfg", |
| 511 | "*.egg", |
| 512 | "MANIFEST", |
| 513 | "", |
| 514 | "# PyInstaller", |
| 515 | "# Usually these files are written by a python script from a template", |
| 516 | "# before PyInstaller builds the exe, so as to inject date/other infos into it.", |
| 517 | "*.manifest", |
| 518 | "*.spec", |
| 519 | "", |
| 520 | "# Installer logs", |
| 521 | "pip-log.txt", |
| 522 | "pip-delete-this-directory.txt", |
| 523 | "", |
| 524 | "# Unit test / coverage reports", |
| 525 | "htmlcov/", |
| 526 | ".tox/", |
| 527 | ".nox/", |
| 528 | ".coverage", |
| 529 | ".coverage.*", |
| 530 | ".cache", |
| 531 | "nosetests.xml", |
| 532 | "coverage.xml", |
| 533 | "*.cover", |
| 534 | "*.py,cover", |
| 535 | ".hypothesis/", |
| 536 | ".pytest_cache/", |
| 537 | "cover/", |
| 538 | "", |
| 539 | "# Translations", |
| 540 | "*.mo", |
| 541 | "*.pot", |