Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Unify `.gitignore`

Dhruv Bhanushalid1ddc5e6f38a
diff --git a/.gitignore b/.gitignore
index 874ec62f6..6b7ecaff1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,147 +1,48 @@
-venv
-es-venv
-
-# IDE junk
-.idea
-
-# Vim junk
-*.swp
-
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-*$py.class
-
-# C extensions
-*.so
-
-# Distribution / packaging
-.Python
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-wheels/
-*.egg-info/
-.installed.cfg
-*.egg
-MANIFEST
-
-# PyInstaller
-# Usually these files are written by a python script from a template
-# before PyInstaller builds the exe, so as to inject date/other infos into it.
-*.manifest
-*.spec
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*.cover
-.hypothesis/
-.pytest_cache/
-
-# Translations
-*.mo
-*.pot
-
-# Django stuff:
-*.log
-local_settings.py
-db.sqlite3
-
-# Flask stuff:
-instance/
-.webassets-cache
-
-# Scrapy stuff:
-.scrapy
-
-# Sphinx documentation
-docs/_build/
-
-# PyBuilder
-target/
-
-# Jupyter Notebook
-.ipynb_checkpoints
-
-# pyenv
-.python-version
-
-# celery beat schedule file
-celerybeat-schedule
+# macOS
+._*
+.DS_Store
-# SageMath parsed files
-*.sage.py
+# Editor/IDE configs
+.idea/
+.vscode/
+.swp
-# Environments
+# Environment
.env
-.venv
+
+# Python environments
env/
venv/
-ENV/
-env.bak/
-venv.bak/
+pip-log.txt
-# Spyder project settings
-.spyderproject
-.spyproject
+# Python
+__pycache__/
+*.py[cod]
+.python-version
-# Rope project settings
-.ropeproject
+# Node.js dependencies
+node_modules/
+npm-debug.log*
+.pnpm-debug.log
-# mkdocs documentation
-/site
+# Local certificates
+*.pem
+*.crt
+*.key
-# Lint
+# pre-commit
pre-commit.pyz
-# mypy
-.mypy_cache/
-
-# Local .terraform directories
-**/.terraform/*
-
-# .tfstate files
-*.tfstate
-*.tfstate.*
+# ESLint
+.eslintcache
-# Crash log files
-crash.log
+# Vercel
+vercel.json
+.vercel
-# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
-# .tfvars files are managed as part of configuration and so should be included in
-# version control.
-#
-# example.tfvars
-
-# Ignore crawler data files
-ccbot/url_dump.csv
-ccbot/crawl_plan.yml
-
-.DS_Store
-*.iml
-.idea
+# Grafana
+grafana.db
# Ingestion server
-ingestion_server/ingestion_server/db
-ingestion_server/ingestion_server/lock
-.vscode
-
-openapi.yaml
+# TODO: This shouldn't be in root
+ingestion_server.log
diff --git a/api/.gitignore b/api/.gitignore
index 5551fd0b9..31b999247 100644
--- a/api/.gitignore
+++ b/api/.gitignore
@@ -1 +1,12 @@
+# Django
static/*
+*.log
+local_settings.py
+db.sqlite3
+
+# Sphinx
+build/
+docs/_build/
+
+# OpenAPI
+openapi.yaml
diff --git a/ingestion_server/.gitignore b/ingestion_server/.gitignore
new file mode 100644
index 000000000..8d789d0ab
--- /dev/null
+++ b/ingestion_server/.gitignore
@@ -0,0 +1,3 @@
+# Mutex
+ingestion_server/db
+ingestion_server/lock