Skip to content

Commit 0f6806f

Browse files
committed
update gitignore
1 parent 70441a1 commit 0f6806f

3 files changed

Lines changed: 47 additions & 38 deletions

File tree

.gitignore

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
1-
# General patterns
2-
*.DS_store
3-
*.ipynb_checkpoints*
4-
*__pycache__*
5-
*.so
6-
*.a
7-
.coverage*
8-
*.pytest_cache
9-
htmlcov
10-
dist
11-
build
12-
*.egg*
13-
*.whl
14-
CMakeCache.txt
15-
CMakeFiles
16-
install_manifest.txt
17-
cmake_install.cmake
18-
wheelhouse
191

20-
# Docs-specific patterns
21-
docs/source/gallery/*
22-
!docs/source/gallery/index.rst
23-
PyOptik/data/**/test*
24-
PyOptik/data/**/example*
2+
# Ignore all
3+
/*
4+
5+
# Except ...
6+
!.github
7+
!PyFinitDiff
8+
!development
9+
!docs
10+
!tests
11+
!.flake8
12+
!.gitignore
13+
!.pre-commit-config.yaml
14+
!LICENSE
15+
!meta.yaml
16+
!pyproject.toml
17+
!README.rst
18+
!notebook.ipynb
19+
!CMakeLists.txt
2520

26-
# Override for documentation_build
27-
!documentation_build
28-
!documentation_build/**
21+
# But ignore docs/build inside docs and code
22+
docs/build/
23+
docs/source/gallery/
24+
25+
# Compiled files in the project
26+
*__pycache__*
27+
*.DS_Store*
28+
*.so*
29+
*.a*

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
10+
- repo: https://github.com/psf/black
11+
rev: 24.4.2
12+
hooks:
13+
- id: black
14+
15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
rev: v0.6.9
17+
hooks:
18+
- id: ruff
19+
args: [--select, I, --fix] # import-order rules + auto-fix
20+
- id: ruff-format # optional (formatter)

docs/source/gallery/index.rst

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)