A Python package to check whether papers in your .bib file or a specific bibtex entry have been listed on Retraction Watch.
- Parse .bib files and extract paper information
- Query the Retraction Watch dataset for retracted papers
- Support both exact DOI matching and fuzzy title matching
- Robust error handling for various edge cases
# Install from PyPI (when published)
pip install retraction-check
# Or install from source
git clone https://github.com/codingfabi/retraction_check.git
cd retraction_check
pipenv install
# Install development dependencies
pipenv install --dev
# Using the installed command
retraction-check yourfile.bib
# Or using the module
python -m retraction_check.check_bib yourfile.bib
# Run all tests
pipenv run test
# Run tests with coverage
pipenv run test-cov
# Run tests in watch mode
pipenv run test-watch
# Run tests directly with Python
python tests/run_tests.py
# Format code
pipenv run format
# Lint code
pipenv run lint
# Type checking
pipenv run type-check
# Run all checks
pipenv run check-all
test
- Run all tests with verbose outputtest-cov
- Run tests with coverage report (HTML and terminal)test-watch
- Run tests in watch mode with short tracebacklint
- Run flake8 lintingformat
- Format code with blackformat-check
- Check if code is properly formattedtype-check
- Run mypy type checkingcheck-all
- Run all quality checks (format, lint, type-check, test-cov)
- Python 3.8+
- bibtexparser
- requests