Open KennethEnevoldsen opened 3 weeks ago
The changes in this pull request primarily involve updates to configuration files, the introduction of a new GitHub Actions workflow for static type checks, and modifications to existing workflows. The .cruft.json
file has an updated commit hash, while the Makefile
has changes to the linting commands. The pyproject.toml
file reflects a specific version for the ruff
dependency and reorganizes linting configurations. Additionally, several Python source files have been enhanced for model management and scoring functionality, and various test files have reordered import statements without altering their functionality.
File | Change Summary |
---|---|
.cruft.json |
Updated commit hash from e02068889310225ea4f65ea0b203c2949e1597a9 to 85413085032f305896da8bad287a83d53fb0b196 . |
.github/workflows/static_type_checks.yml |
New workflow added for running static type checks on the codebase. |
.github/workflows/tests.yml |
Workflow name changed from "Tests" to "test" and job name changed from "pytest" to "test"; comments updated. |
Makefile |
Lint target commands modified to use ruff check instead of ruff . |
pyproject.toml |
Updated ruff dependency version to ==0.7.1 , added tool.ruff configuration with exclude and target-version , and reorganized linting sections. |
src/dacy/download.py |
Expanded models_url dictionary with additional DaCy model URLs and updated download_model function for better error handling. |
src/dacy/load.py |
Added warning message in where_is_my_dacy function when verbose is True . |
src/dacy/score/input_length.py |
Updated n_sents_score function's docstring and default score_fn value to include "dep". |
src/dacy/score/score.py |
Modified score function to use get method for accessing scores, added type hints for parameters. |
tests/test_datasets.py |
Reordered import statements; no functional changes. |
tests/test_download.py |
Reordered import statements; no functional changes. |
tests/test_hate_speech.py |
Activated dacy import; no functional changes. |
tests/test_score.py |
Reordered import statements; no functional changes. |
tests/test_sentiment.py |
Reordered import statements; no functional changes. |
In the burrow deep, where changes bloom,
A workflow new dispels the gloom.
With ruff in hand, we check and play,
Our code refined, come what may.
From models grand to tests that cheer,
The rabbit's work is ever near! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation
Chores
ruff
in project configuration.