Compare commits
No commits in common. "main" and "no-orga" have entirely different histories.
7 changed files with 7 additions and 72 deletions
19
.coveragerc
19
.coveragerc
|
@ -1,12 +1,8 @@
|
||||||
[run]
|
[run]
|
||||||
source = doi2dataset
|
source = doi2dataset
|
||||||
omit =
|
omit =
|
||||||
*/tests/*
|
*/tests/*
|
||||||
*/test_*
|
|
||||||
*/docs/*
|
*/docs/*
|
||||||
*/__pycache__/*
|
|
||||||
*/venv/*
|
|
||||||
*/.venv/*
|
|
||||||
setup.py
|
setup.py
|
||||||
conf.py
|
conf.py
|
||||||
__init__.py
|
__init__.py
|
||||||
|
@ -15,22 +11,13 @@ omit =
|
||||||
exclude_lines =
|
exclude_lines =
|
||||||
pragma: no cover
|
pragma: no cover
|
||||||
def __repr__
|
def __repr__
|
||||||
def __str__
|
|
||||||
if self.debug:
|
if self.debug:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
raise AssertionError
|
|
||||||
if __name__ == .__main__.:
|
if __name__ == .__main__.:
|
||||||
if TYPE_CHECKING:
|
|
||||||
@abstractmethod
|
|
||||||
pass
|
pass
|
||||||
raise ImportError
|
raise ImportError
|
||||||
except ImportError
|
except ImportError
|
||||||
|
def __str__
|
||||||
show_missing = true
|
|
||||||
precision = 2
|
|
||||||
|
|
||||||
[html]
|
[html]
|
||||||
directory = htmlcov
|
directory = htmlcov
|
||||||
|
|
||||||
[xml]
|
|
||||||
output = coverage.xml
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -59,7 +59,6 @@ htmlcov/
|
||||||
.cache
|
.cache
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
coverage.xml
|
coverage.xml
|
||||||
junit.xml
|
|
||||||
*.cover
|
*.cover
|
||||||
*.py,cover
|
*.py,cover
|
||||||
.hypothesis/
|
.hypothesis/
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
# GitLab CI/CD pipeline for doi2dataset
|
|
||||||
# Compatible with GitLab v18.1.1
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- test
|
|
||||||
|
|
||||||
variables:
|
|
||||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
||||||
|
|
||||||
cache:
|
|
||||||
paths:
|
|
||||||
- .cache/pip/
|
|
||||||
- .venv/
|
|
||||||
|
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
image: python:3
|
|
||||||
before_script:
|
|
||||||
- python -m pip install --upgrade pip
|
|
||||||
- pip install -r requirements.txt
|
|
||||||
- pip install -r requirements-dev.txt
|
|
||||||
script:
|
|
||||||
- pytest
|
|
||||||
artifacts:
|
|
||||||
reports:
|
|
||||||
junit: junit.xml
|
|
||||||
coverage_report:
|
|
||||||
coverage_format: cobertura
|
|
||||||
path: coverage.xml
|
|
||||||
paths:
|
|
||||||
- htmlcov/
|
|
||||||
expire_in: 1 week
|
|
||||||
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
|
||||||
only:
|
|
||||||
- branches
|
|
||||||
- merge_requests
|
|
|
@ -103,6 +103,8 @@ Documentation is generated using Sphinx. See the `docs/` directory for detailed
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
Tests are implemented with pytest. The test suite provides comprehensive coverage of core functionalities. To run the tests, execute:
|
Tests are implemented with pytest. The test suite provides comprehensive coverage of core functionalities. To run the tests, execute:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -193,7 +195,7 @@ These tests ensure that all components work correctly in isolation and together
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
### Version 2.0 - Generalization Update
|
### Version 0.2.0 - Generalization Update
|
||||||
|
|
||||||
This version has been updated to make the tool more generalized and suitable for broader use cases:
|
This version has been updated to make the tool more generalized and suitable for broader use cases:
|
||||||
|
|
||||||
|
|
15
pytest.ini
15
pytest.ini
|
@ -1,15 +0,0 @@
|
||||||
[pytest]
|
|
||||||
addopts =
|
|
||||||
--cov=doi2dataset
|
|
||||||
--cov-report=html
|
|
||||||
--cov-report=xml
|
|
||||||
--cov-report=term-missing
|
|
||||||
--junitxml=junit.xml
|
|
||||||
--verbose
|
|
||||||
--tb=short
|
|
||||||
|
|
||||||
testpaths = tests
|
|
||||||
|
|
||||||
python_files = test_*.py *_test.py
|
|
||||||
python_functions = test_*
|
|
||||||
python_classes = Test*
|
|
|
@ -1,4 +1,3 @@
|
||||||
pytest>=8.3.5,<9.0
|
pytest>=8.3.5,<9.0
|
||||||
pytest-mock>=3.14.0,<4.0
|
pytest-mock>=3.14.0,<4.0
|
||||||
pytest-cov>=6.0.0,<7.0
|
|
||||||
ruff>=0.11.1,<0.20
|
ruff>=0.11.1,<0.20
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -25,8 +25,7 @@ setup(
|
||||||
],
|
],
|
||||||
"dev": [
|
"dev": [
|
||||||
"pytest>=8.3.5,<9.0",
|
"pytest>=8.3.5,<9.0",
|
||||||
"pytest-mock>=3.14.0,<4.0",
|
"pytest-mock>=3.14.0,4.0",
|
||||||
"pytest-cov>=6.0.0,<7.0",
|
|
||||||
"ruff>=0.11.1,<0.20"
|
"ruff>=0.11.1,<0.20"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue