Skip to content

Commit 6037d2f

Browse files
chore: add requirements.txt to ensure test pass in other PRs (#13)
1 parent d361291 commit 6037d2f

File tree

6 files changed

+120
-21
lines changed

6 files changed

+120
-21
lines changed

.github/header-checker-lint.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,29 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
1615
# Presubmit test that ensures that source files contain valid license headers
1716
# https://github.com/googleapis/repo-automation-bots/tree/main/packages/header-checker-lint
1817
# Install: https://github.com/apps/license-header-lint-gcf
1918

2019
allowedCopyrightHolders:
21-
- 'Google LLC'
20+
- "Google LLC"
2221
allowedLicenses:
23-
- 'Apache-2.0'
22+
- "Apache-2.0"
2423
sourceFileExtensions:
25-
- 'yaml'
26-
- 'yml'
27-
- 'sh'
28-
- 'ts'
29-
- 'js'
30-
- 'java'
31-
- 'py'
32-
- 'html'
33-
- 'txt'
34-
- 'Dockerfile'
35-
- 'go'
36-
- 'tf'
37-
- 'proto'
24+
- "yaml"
25+
- "yml"
26+
- "sh"
27+
- "proto"
28+
- "Dockerfile"
29+
- "py"
30+
- "text"
31+
ignoreFiles:
32+
- ".github/blunderbuss.yml"
33+
- ".github/release-please.yml"
34+
- ".github/release-trigger.yml"
35+
- ".github/header-checker-lint.yml"
36+
- ".github/sync-repo-settings.yaml"
37+
- ".github/workflows/docs.yml"
38+
- ".kokoro/**"
39+
- "**/requirements.txt"
40+
- "**/requirements*.txt"

.gitignore

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ local.properties
2626
.env
2727
.venv
2828
env/
29-
venv/
29+
venv*/
3030
ENV/
3131
env.bak/
3232
venv.bak/
33+
.python-version
3334

3435
# Local .terraform directories
3536
**/.terraform/*
@@ -43,11 +44,47 @@ crash.log
4344
crash.*.log
4445

4546
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
46-
# password, private keys, and other secrets. These should not be part of version
47-
# control as they are data points which are potentially sensitive and subject
47+
# password, private keys, and other secrets. These should not be part of version
48+
# control as they are data points which are potentially sensitive and subject
4849
# to change depending on the environment.
4950
*.tfvars
5051
*.tfvars.json
5152

52-
# Language Specific
53-
# ...
53+
# PY Language Specific
54+
*.egg
55+
*.egg-info
56+
dist
57+
build
58+
eggs
59+
.eggs
60+
parts
61+
bin
62+
var
63+
sdist
64+
develop-eggs
65+
.installed.cfg
66+
lib
67+
lib64
68+
__pycache__
69+
70+
71+
# Installer logs
72+
pip-log.txt
73+
74+
# Unit test / coverage reports
75+
.coverage
76+
.nox
77+
.cache
78+
.pytest_cache
79+
80+
81+
# Test logs
82+
coverage.xml
83+
*sponge_log.xml
84+
85+
# System test environment variables.
86+
system_tests/local_test_setup
87+
88+
# Make sure a generated file isn't accidentally committed.
89+
pylintrc
90+
pylintrc.test

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cloud-sql-python-connector[asyncpg]==1.12.1
2+
llama-index-core==0.12.0
3+
pgvector==0.3.6
4+
SQLAlchemy[asyncio]==2.0.36
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
_all = [
16+
"__version__",
17+
]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
__version__ = "0.1.0"

tests/test_engine.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import pytest
16+
import pytest_asyncio
17+
18+
19+
@pytest.mark.asyncio
20+
class TestEngine:
21+
async def test_method(self):
22+
# TODO: implement tests
23+
assert 0 == 0

0 commit comments

Comments
 (0)