codespector 1.0.0__tar.gz → 1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {codespector-1.0.0 → codespector-1.0.1}/PKG-INFO +1 -1
  2. {codespector-1.0.0 → codespector-1.0.1}/cicd_examples/.gitlab-ci.yml +14 -13
  3. {codespector-1.0.0 → codespector-1.0.1}/pyproject.toml +1 -1
  4. {codespector-1.0.0 → codespector-1.0.1}/.github/workflows/build-publish.yml +0 -0
  5. {codespector-1.0.0 → codespector-1.0.1}/.github/workflows/tests.yml +0 -0
  6. {codespector-1.0.0 → codespector-1.0.1}/.gitignore +0 -0
  7. {codespector-1.0.0 → codespector-1.0.1}/LICENSE +0 -0
  8. {codespector-1.0.0 → codespector-1.0.1}/Makefile +0 -0
  9. {codespector-1.0.0 → codespector-1.0.1}/README.md +0 -0
  10. {codespector-1.0.0 → codespector-1.0.1}/codespector/__init__.py +0 -0
  11. {codespector-1.0.0 → codespector-1.0.1}/codespector/base.py +0 -0
  12. {codespector-1.0.0 → codespector-1.0.1}/codespector/codespector.py +0 -0
  13. {codespector-1.0.0 → codespector-1.0.1}/codespector/errors.py +0 -0
  14. {codespector-1.0.0 → codespector-1.0.1}/codespector/local.py +0 -0
  15. {codespector-1.0.0 → codespector-1.0.1}/codespector/main.py +0 -0
  16. {codespector-1.0.0 → codespector-1.0.1}/codespector/reviewer.py +0 -0
  17. {codespector-1.0.0 → codespector-1.0.1}/codespector/types.py +0 -0
  18. {codespector-1.0.0 → codespector-1.0.1}/tests/__init__.py +0 -0
  19. {codespector-1.0.0 → codespector-1.0.1}/tests/conftest.py +0 -0
  20. {codespector-1.0.0 → codespector-1.0.1}/tests/unit/__init__.py +0 -0
  21. {codespector-1.0.0 → codespector-1.0.1}/tests/unit/test_codespector.py +0 -0
  22. {codespector-1.0.0 → codespector-1.0.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codespector
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Assistant for reviewing your code
5
5
  Project-URL: Repository, https://github.com/Vladimir-Titov/codespector
6
6
  Project-URL: Issues, https://github.com/Vladimir-Titov/codespector/issues
@@ -4,8 +4,9 @@ workflow:
4
4
 
5
5
  variables:
6
6
  GIT_DEPTH: 0
7
- CODESPECTOR_RESULT_FILE: "codespector/result.md"
8
- CODESPECTOR_COMBINED_FILE: "codespector/combined.json"
7
+ CODESPECTOR_RESULT_FILEPATH: "codespector/result.md"
8
+ CODESPECTOR_COMBINED_FILEPATH: "codespector/combined.json"
9
+
9
10
 
10
11
  stages:
11
12
  - codespector
@@ -17,17 +18,17 @@ codespector-job:
17
18
  - apt-get update && apt-get install -y jq
18
19
  - git fetch --no-tags origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
19
20
  - pip install codespector
20
- - |
21
- codespector
22
- --chat-token $CODESPECTOR_CHAT_TOKEN
23
- --chat-agent $CODESPECTOR_CHAT_AGENT
24
- --compare-branch origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME...HEAD
25
- --result-file $CODESPECTOR_RESULT_FILE
26
- --system-content $CODESCPECTOR_SYSTEM_CONTENT
27
- --prompt-content $CODESPECTOR_PROMPT_CONTENT
21
+ - |
22
+ codespector \
23
+ --chat-token "$CODESPECTOR_CHAT_TOKEN" \
24
+ --chat-agent "$CODESPECTOR_CHAT_AGENT" \
25
+ --compare-branch "origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME...HEAD" \
26
+ --result-file "$CODESPECTOR_RESULT_FILE" \
27
+ --system-content "$CODESCPECTOR_SYSTEM_CONTENT" \
28
+ --prompt-content "$CODESPECTOR_PROMPT_CONTENT"
28
29
 
29
30
  - |
30
- COMMENT_CONTENT=$(cat ${CODESPECTOR_RESULT_FILE} | jq -Rs .)
31
+ COMMENT_CONTENT=$(cat ${CODESPECTOR_RESULT_FILEPATH} | jq -Rs .)
31
32
  echo "Posting comment to MR..."
32
33
  curl -X POST \
33
34
  --header "PRIVATE-TOKEN: $GITLAB_TOKEN" \
@@ -36,6 +37,6 @@ codespector-job:
36
37
  "$CI_API_V4_URL/projects/$CI_PROJECT_ID/merge_requests/$CI_MERGE_REQUEST_IID/notes"
37
38
  artifacts:
38
39
  paths:
39
- - ${CODESPECTOR_RESULT_FILE}
40
- - ${CODESPECTOR_COMBINED_FILE}
40
+ - ${CODESPECTOR_RESULT_FILEPATH}
41
+ - ${CODESPECTOR_COMBINED_FILEPATH}
41
42
  expire_in: 10 minutes
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codespector"
3
- version = "1.0.0"
3
+ version = "1.0.1"
4
4
  authors = [
5
5
  { name = "vtitov", email = "v.v.titov94@gmail.com" }
6
6
  ]
File without changes
File without changes
File without changes
File without changes
File without changes