-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
224 changed files
with
5,799 additions
and
4,284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#.codiumai.toml | ||
[tests] | ||
|
||
## Testing framework to use - this can affect the content of the generated tests | ||
## as well as the test run command. | ||
## Possible values are: | ||
## Python: Pytest, Unittest | ||
framework = "Pytest" | ||
|
||
## A hint to the test generator about whether to use mocks or not. Possible values are true or false. | ||
# use_mocks = false | ||
|
||
## How many tests should be generated by default. Fewer tests is faster. | ||
## Does not apply at the moment to extend-suite tests. | ||
num_desired_tests = 20 | ||
|
||
## A multiline string, delimited with triple-quotes (""") serving as an extra instruction | ||
## that the AI model will take into consideration. | ||
## This will appear as "General instructions" in the | ||
## configuration section in the tests panel. | ||
# plan_instructions = """ | ||
# Each line should have a comment explaining it. | ||
# Each comment should start with the comment number (1., 2. etc.) | ||
# """ | ||
|
||
## A multiline string, delimited with triple-quotes (""") serving as an example test that represents | ||
## what you would like the generated tests to look like in terms of style, setup, etc. | ||
# example_test = """ | ||
# describe("something", () => { | ||
# it("says 'bar'", () => { | ||
# // given | ||
# | ||
# // when | ||
# const res = something.say(); | ||
# | ||
# // Then | ||
# expect(res).to.equal("bar"); | ||
# }); | ||
# }); | ||
# """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,17 +25,20 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install pytest pytest-cov coverage cached-property | ||
python setup.py clean build install | ||
- name: Run test | ||
run: pytest | ||
|
||
- name: Generate coverage report | ||
pip install pytest pytest-cov pytest-sugar coverage cached-property | ||
- name: Install Whoosh | ||
run: | | ||
pip install -e . | ||
- name: Run tests | ||
run: | | ||
pip install pytest | ||
pip install pytest-cov | ||
pytest --cov=./ --cov-report=xml | ||
pytest --cov=./ --cov-report=xml --cov-report=html | ||
- name: Upload HTML coverage report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "HTML Coverage ${{ matrix.python-version }}" | ||
path: "htmlcov" | ||
retention-days: 7 | ||
|
||
- name: Upload Coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-ast | ||
- id: check-builtin-literals | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.2.1 | ||
hooks: | ||
- id: ruff | ||
- id: ruff-format | ||
|
||
- repo: https://github.com/ikamensh/flynt/ | ||
rev: '1.0.1' | ||
hooks: | ||
- id: flynt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sonar.python.version=3.8, 3.9, 3.10, 3.11, 3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.