Skip to content

Commit 80b75f9

Browse files
core-manweiji14seisman
authored
Improve the .gitignore file (#959)
List the ignore patterns in groups referring to https://github.com/github/gitignore/blob/master/Python.gitignore. Sort alphabetically in each group. Some files have also been added: - `.DS_Store` which is only for macOS - `results/` which is generated when running pytest - `.egg` which is generated when making distributions Co-authored-by: Wei Ji <[email protected]> Co-authored-by: Dongdong Tian <[email protected]>
1 parent e057927 commit 80b75f9

File tree

1 file changed

+41
-21
lines changed

1 file changed

+41
-21
lines changed

.gitignore

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,46 @@
1-
*.pyc
2-
*~
1+
# Byte-compiled / optimized / DLL files
2+
*.py[cd]
3+
4+
# C extensions
35
*.so
4-
*.pyd
5-
.*.swp
6-
*.egg-info
7-
.coverage
8-
.cache
9-
.env
6+
7+
# Distribution / packaging
8+
build/
9+
dist/
10+
*.egg
11+
*.egg-info/
12+
.eggs/
1013
MANIFEST
14+
15+
# Unit test / coverage reports
16+
.cache
17+
.coverage
18+
coverage.xml
19+
htmlcov/
1120
.pytest_cache/
12-
.ipynb_checkpoints/
13-
.vscode/
21+
results/
1422
result_images/
1523
tmp-test-dir-with-unique-name/
16-
coverage.xml
17-
htmlcov
18-
build/
19-
dist/
20-
doc/_build
21-
doc/modules
22-
doc/gallery
23-
doc/tutorials
24-
doc/projections
25-
doc/api/gmt*.rst
26-
doc/api/generated
24+
25+
# Sphinx documentation
26+
doc/api/generated/
27+
doc/_build/
28+
doc/gallery/
29+
doc/projections/
30+
doc/tutorials/
31+
32+
# Jupyter Notebook
33+
.ipynb_checkpoints/
34+
35+
# Visual Studio Code
36+
.vscode/
37+
38+
# Environments
39+
.env
40+
41+
# Backup copies / swap files
42+
*~
43+
.*.swp
44+
45+
# macOS
46+
.DS_Store

0 commit comments

Comments
 (0)