# Copyright 2021 Agnostiq Inc.
#
# This file is part of Covalent.
#
# Licensed under the Apache License 2.0 (the "License"). A copy of the
# License may be obtained with this software package or at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Use of this file is prohibited except in compliance with the License.
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Ignore everything
*

# Descend into subdirectories
!*/

# Allow tests, docs, core source, github actions, and detect-secrets filters
!/.detect_secrets_filters/**
!/.github/**
!/covalent_migrations/**
!/covalent/**
!/covalent_ui/**
/covalent_ui/dask-worker-space/**.*lock
!/covalent_dispatcher/**
!/doc/**
/doc/build/**
!/tests/**

# Ignore dask-worker-spaces
**/dask-worker-space

# Ignore __pycache__
**/__pycache__

# Ignore results
**/results

# Allow config files
!.flake8
!.gitignore
!.pre-commit-config.yaml
!.prettierrc
!.pylintrc
!.readthedocs.yaml
!.secrets.baseline
!alembic.ini
!codecov.yml
!Dockerfile
!MANIFEST.in
!Makefile
!README.md
!meta.yaml
!pyproject.toml
!requirements.txt
!requirements-client.txt
!requirements-qelectron.txt
!setup.py

# Allow markdown etc
!CHANGELOG.md
!CODE_OF_CONDUCT.md
!CONTRIBUTING.md
!LICENSE
!README.md
!VERSION

# Ignore notebook checkpoints
**/.ipynb_checkpoints

# Ignore .sonarwork files
covalent_ui/api/.scannerwork/.sonar_lock
covalent_ui/api/.scannerwork/report-task.txt
covalent_ui/api/sonar.sh

# Ignore node dependencies
node_modules/

# Yarn ignored and allowed files and folders
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Ignore mock database
**/*.sqlite

# Ignore virtual envs
*.venv
