-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitignore
More file actions
82 lines (71 loc) · 2.75 KB
/
.gitignore
File metadata and controls
82 lines (71 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#You MUST explicitly unignore any directories you want Git to track.
# -----------------------------------------------------------------------------
*/
# UNIGNORE: If you have specific top-level directories you want to track,
# list them here. For example, if your actual source code is in 'my_project_code':
#!my_project_code/
#!my_project_code/**/* # Also unignore its contents
# UNIGNORE: If you have a 'src' directory you *do* want to track, and
# you want to track 'python' within it:
#!src/
#!src/python/
#!src/python/**/* # And its contents
# -----------------------------------------------------------------------------
# ADAPTED EXISTING RULES: Now these apply to any directory, not just /src/python
# If a directory (e.g., 'my_project_code/') is unignored above, these rules
# will then apply to paths within 'my_project_code'.
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# NEW CONCEPT: Ignore all directories at the top level of the repository.
# You MUST explicitly unignore any directories you want Git to track.
# -----------------------------------------------------------------------------
*/
# UNIGNORE: If you have specific top-level directories you want to track,
# list them here. For example, if your actual source code is in 'my_project_code':
#!my_project_code/
#!my_project_code/**/* # Also unignore its contents
# UNIGNORE: If you have a 'src' directory you *do* want to track, and
# you want to track 'python' within it:
#!src/
#!src/python/
#!src/python/**/* # And its contents
# -----------------------------------------------------------------------------
# ADAPTED EXISTING RULES: Now these apply to any directory, not just /src/python
# If a directory (e.g., 'my_project_code/') is unignored above, these rules
# will then apply to paths within 'my_project_code'.
# -----------------------------------------------------------------------------
# Ignore sensitive credential files anywhere in the repository
**/token.json
**/credentials.json
**/.env
# Ignore Python virtual environments relative to any unignored directory
# The `**/` matches zero or more directories, so it works anywhere.
**/venv/
**/env/
**/bin/
**/lib/
**/lib64/
**/include/
**/.Python
**/pyvenv.cfg
# Ignore Python packages (these are generally fine as is, applying anywhere)
__pycache__/
*.pyc
*.pyo
*.pyd
.Python
pip-log.txt
pip-delete-this-directory.txt
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.log
# Ignore specific site-packages (This is also general enough)
*/site-packages/
# Ignore .pyc files globally (redundant if `*.pyc` is already there, but harmless)
# Keeping it here for fidelity to your original, but `*.pyc` above covers it.
# *.pyc