1+ # This .gitignore file is based on SSB's recommended gitignore template stored
2+ # in: https://github.com/statisticsnorway/kvakk-git-tools
3+ # It contains three sections: SSB specific ignores, GitHub's Python-ignore
4+ # template and GitHub's R-ignore template.
5+
6+
7+ # The section below contains SSB specific ignores, not included in the Python-
8+ # and R-ignores from GitHub.
9+
10+ * .csv
11+ * .db
12+ * .feather
13+ * .gz
14+ * .orig
15+ * .parquet
16+ * .sas7bdat
17+ * .xls
18+ * .xlsx
19+ * .zip
20+ * .rda
21+ * .rej
22+
23+ # Blaise
24+ * .bdix
25+ * .bdbx
26+ * .bpkg
27+ * .mbpkg
28+ * .backup
29+ * .bmix
30+ * .msux
31+ * .usersettings
32+
33+ # Notebooks shall be stored in .py or .R-format.
34+ # See https://adr.ssb.no/0020-lagringsformat-for-jupyter-notebooks/
35+ * .ipynb
36+
37+
38+ # The section below is from the GitHub .gitignore template for Python:
39+ # https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore
40+
141# Byte-compiled / optimized / DLL files
242__pycache__ /
343* .py [cod ]
444* $py.class
45+ ** /.poetry /cache /
546
647# C extensions
748* .so
2061sdist /
2162var /
2263wheels /
23- pip-wheel-metadata /
2464share /python-wheels /
2565* .egg-info /
2666.installed.cfg
@@ -50,6 +90,7 @@ coverage.xml
5090* .py,cover
5191.hypothesis /
5292.pytest_cache /
93+ cover /
5394
5495# Translations
5596* .mo
@@ -72,6 +113,7 @@ instance/
72113docs /_build /
73114
74115# PyBuilder
116+ .pybuilder /
75117target /
76118
77119# Jupyter Notebook
@@ -82,7 +124,9 @@ profile_default/
82124ipython_config.py
83125
84126# pyenv
85- .python-version
127+ # For a library or package, you might want to ignore these files since the code is
128+ # intended to run in multiple environments; otherwise, check them in:
129+ # .python-version
86130
87131# pipenv
88132# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
@@ -91,7 +135,30 @@ ipython_config.py
91135# install all needed dependencies.
92136# Pipfile.lock
93137
94- # PEP 582; used by e.g. github.com/David-OConnor/pyflow
138+ # UV
139+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
140+ # This is especially recommended for binary packages to ensure reproducibility, and is more
141+ # commonly ignored for libraries.
142+ # uv.lock
143+
144+ # poetry
145+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
146+ # This is especially recommended for binary packages to ensure reproducibility, and is more
147+ # commonly ignored for libraries.
148+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
149+ # poetry.lock
150+
151+ # pdm
152+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
153+ # pdm.lock
154+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
155+ # in version control.
156+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
157+ .pdm.toml
158+ .pdm-python
159+ .pdm-build /
160+
161+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
95162__pypackages__ /
96163
97164# Celery stuff
@@ -103,6 +170,7 @@ celerybeat.pid
103170
104171# Environments
105172.env
173+ .envrc
106174.venv
107175env /
108176venv /
@@ -128,21 +196,75 @@ dmypy.json
128196# Pyre type checker
129197.pyre /
130198
199+ # pytype static type analyzer
200+ .pytype /
201+
202+ # Cython debug symbols
203+ cython_debug /
204+
131205# PyCharm
132- .idea /
133-
134- /.python-version
135- /.pytype /
136- /docs /_build /
137-
138- # Visual Studio Code
139- .vscode /*
140- ! .vscode /settings.json
141- ! .vscode /tasks.json
142- ! .vscode /launch.json
143- ! .vscode /extensions.json
144- ! .vscode /* .code-snippets
145- # Local History for Visual Studio Code
146- .history /
147- # Built Visual Studio Code Extensions
148- * .vsix
206+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
207+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
208+ # and can be added to the global gitignore or merged into this file. For a more nuclear
209+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
210+ # .idea/
211+
212+ # Ruff stuff:
213+ .ruff_cache /
214+
215+ # PyPI configuration file
216+ .pypirc
217+
218+ # The section below is from the GitHub .gitignore template for R:
219+ # https://raw.githubusercontent.com/github/gitignore/main/R.gitignore
220+
221+ # History files
222+ .Rhistory
223+ .Rapp.history
224+
225+ # Session Data files
226+ .RData
227+ .RDataTmp
228+
229+ # User-specific files
230+ .Ruserdata
231+
232+ # Example code in package build process
233+ * -Ex.R
234+
235+ # Output files from R CMD build
236+ /* .tar.gz
237+
238+ # Output files from R CMD check
239+ /* .Rcheck /
240+
241+ # RStudio files
242+ .Rproj.user /
243+
244+ # produced vignettes
245+ vignettes /* .html
246+ vignettes /* .pdf
247+
248+ # OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
249+ .httr-oauth
250+
251+ # knitr and R markdown default cache directories
252+ * _cache /
253+ /cache /
254+
255+ # Temporary files created by R markdown
256+ * .utf8.md
257+ * .knit.md
258+
259+ # R Environment Variables
260+ .Renviron
261+
262+ # pkgdown site
263+ # SSB: The directory below is commented out because default when generating documentation with Sphinx
264+ # docs/
265+
266+ # translation temp files
267+ po /* ~
268+
269+ # RStudio Connect folder
270+ rsconnect /
0 commit comments