Merge branch 'dev' into fix_security_issue

This commit is contained in:
Vasilije 2026-01-08 21:28:11 +01:00 committed by GitHub
commit ada0a2be4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
92 changed files with 219 additions and 226 deletions

View file

@ -3,3 +3,7 @@
# CORS_ALLOWED_ORIGINS="https://yourdomain.com,https://another.com" # CORS_ALLOWED_ORIGINS="https://yourdomain.com,https://another.com"
# For local development, you might use: # For local development, you might use:
# CORS_ALLOWED_ORIGINS="http://localhost:3000" # CORS_ALLOWED_ORIGINS="http://localhost:3000"
LLM_API_KEY="your-openai-api-key"
LLM_MODEL="openai/gpt-4o-mini"
LLM_PROVIDER="openai"

View file

@ -71,4 +71,3 @@ body:
required: true required: true
- label: I have specified the location of the documentation issue - label: I have specified the location of the documentation issue
required: true required: true

View file

@ -75,4 +75,3 @@ body:
required: true required: true
- label: I have described my specific use case - label: I have described my specific use case
required: true required: true

View file

@ -8,5 +8,3 @@ lxobr
pazone pazone
siillee siillee
vasilije1990 vasilije1990

View file

@ -24,7 +24,7 @@ DO NOT use AI-generated descriptions. We want to understand your thought process
## Pre-submission Checklist ## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR --> <!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR** - [ ] **I have tested my changes thoroughly before submitting this PR** (See `CONTRIBUTING.md`)
- [ ] **This PR contains minimal changes necessary to address the issue/feature** - [ ] **This PR contains minimal changes necessary to address the issue/feature**
- [ ] My code follows the project's coding standards and style guidelines - [ ] My code follows the project's coding standards and style guidelines
- [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added tests that prove my fix is effective or that my feature works

View file

@ -72,5 +72,3 @@ jobs:
} catch (error) { } catch (error) {
core.warning(`Failed to add label: ${error.message}`); core.warning(`Failed to add label: ${error.message}`);
} }

View file

@ -66,5 +66,3 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_DEV_USER_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_DEV_USER_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_DEV_USER_SECRET_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_DEV_USER_SECRET_KEY }}
run: uv run python ./cognee/tests/test_load.py run: uv run python ./cognee/tests/test_load.py

View file

@ -5,7 +5,7 @@ permissions:
contents: read contents: read
jobs: jobs:
check-uv-lock: check-uv-lock:
name: Validate uv lockfile and project metadata name: Lockfile and Pre-commit Hooks
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Check out repository - name: Check out repository
@ -20,3 +20,6 @@ jobs:
- name: Validate uv lockfile and project metadata - name: Validate uv lockfile and project metadata
run: uv lock --check || { echo "'uv lock --check' failed."; echo "Run 'uv lock' and push your changes."; exit 1; } run: uv lock --check || { echo "'uv lock --check' failed."; echo "Run 'uv lock' and push your changes."; exit 1; }
- name: Run pre-commit hooks
uses: pre-commit/action@v3.0.1

View file

@ -15,4 +15,3 @@ jobs:
name: Load Tests name: Load Tests
uses: ./.github/workflows/load_tests.yml uses: ./.github/workflows/load_tests.yml
secrets: inherit secrets: inherit

1
.gitignore vendored
View file

@ -147,6 +147,7 @@ venv/
ENV/ ENV/
env.bak/ env.bak/
venv.bak/ venv.bak/
mise.toml
# Spyder project settings # Spyder project settings
.spyderproject .spyderproject

View file

@ -7,6 +7,7 @@ repos:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-yaml - id: check-yaml
exclude: ^deployment/helm/templates/
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version. # Ruff version.

View file

@ -128,5 +128,3 @@ MCP server and Frontend:
## CI Mirrors Local Commands ## CI Mirrors Local Commands
Our GitHub Actions run the same ruff checks and pytest suites shown above (`.github/workflows/basic_tests.yml` and related workflows). Use the commands in this document locally to minimize CI surprises. Our GitHub Actions run the same ruff checks and pytest suites shown above (`.github/workflows/basic_tests.yml` and related workflows). Use the commands in this document locally to minimize CI surprises.

View file

@ -62,6 +62,11 @@ Looking for a place to start? Try filtering for [good first issues](https://gith
## 2. 🛠️ Development Setup ## 2. 🛠️ Development Setup
### Required tools
* [Python](https://www.python.org/downloads/)
* [uv](https://docs.astral.sh/uv/getting-started/installation/)
* pre-commit: `uv run pip install pre-commit && pre-commit install`
### Fork and Clone ### Fork and Clone
1. Fork the [**cognee**](https://github.com/topoteretes/cognee) repository 1. Fork the [**cognee**](https://github.com/topoteretes/cognee) repository
@ -93,29 +98,31 @@ git checkout -b feature/your-feature-name
4. **Commits**: Write clear commit messages 4. **Commits**: Write clear commit messages
### Running Tests ### Running Tests
Rename `.env.example` into `.env` and provide your OPENAI_API_KEY as LLM_API_KEY
```shell ```shell
python cognee/cognee/tests/test_library.py uv run python cognee/tests/test_library.py
``` ```
### Running Simple Example ### Running Simple Example
Change .env.example into .env and provide your OPENAI_API_KEY as LLM_API_KEY Rename `.env.example` into `.env` and provide your OPENAI_API_KEY as LLM_API_KEY
Make sure to run ```shell uv sync ``` in the root cloned folder or set up a virtual environment to run cognee Make sure to run ```shell uv sync ``` in the root cloned folder or set up a virtual environment to run cognee
```shell ```shell
python cognee/cognee/examples/python/simple_example.py python examples/python/simple_example.py
``` ```
or or
```shell ```shell
uv run python cognee/cognee/examples/python/simple_example.py uv run python examples/python/simple_example.py
``` ```
## 4. 📤 Submitting Changes ## 4. 📤 Submitting Changes
1. Install ruff on your system 1. Make sure that `pre-commit` and hooks are installed. See `Required tools` section for more information. Try executing `pre-commit run` if you are not sure.
2. Run ```ruff format .``` and ``` ruff check ``` and fix the issues
3. Push your changes: 3. Push your changes:
```shell ```shell
git add . git add .

View file

@ -1,3 +1,2 @@
export { default as Modal } from "./Modal"; export { default as Modal } from "./Modal";
export { default as useModal } from "./useModal"; export { default as useModal } from "./useModal";

View file

@ -74,4 +74,3 @@ function MarkdownPreview({ content, className = "" }: MarkdownPreviewProps) {
} }
export default memo(MarkdownPreview); export default memo(MarkdownPreview);

View file

@ -72,4 +72,3 @@ profile = "black"
- E501: line too long -> break with parentheses - E501: line too long -> break with parentheses
- E225: missing whitespace around operator - E225: missing whitespace around operator
- E402: module import not at top of file - E402: module import not at top of file

View file

@ -72,4 +72,3 @@ Use modules/packages to separate concerns; avoid wildcard imports.
- Is this the simplest working solution? - Is this the simplest working solution?
- Are errors explicit and logged? - Are errors explicit and logged?
- Are modules/namespaces used appropriately? - Are modules/namespaces used appropriately?

View file

@ -1 +0,0 @@

View file

@ -1 +0,0 @@

View file

@ -43,4 +43,3 @@ networks:
volumes: volumes:
postgres_data: postgres_data:

View file

@ -11,4 +11,3 @@ spec:
targetPort: {{ .Values.postgres.port }} targetPort: {{ .Values.postgres.port }}
selector: selector:
app: {{ .Release.Name }}-postgres app: {{ .Release.Name }}-postgres

View file

@ -209,4 +209,3 @@
</svg> </svg>
</body> </body>
</html> </html>

2
mise.toml Normal file
View file

@ -0,0 +1,2 @@
[tools]
python = "latest"

View file

@ -50,4 +50,3 @@
"department": "HR" "department": "HR"
} }
] ]

View file

@ -106,4 +106,3 @@
"action": "purchased" "action": "purchased"
}] }]
}] }]

View file

@ -58,4 +58,3 @@ fi
# error in package # error in package
exit 1 exit 1