feat: Update project build and configuration#65
Merged
pbadillatorrealba merged 5 commits intodevelopfrom Jul 29, 2025
Merged
Conversation
…n, and refactor dataset loading, fix tests warnings
There was a problem hiding this comment.
Pull Request Overview
This is a major release modernizing the WEFE (Word Embedding Fairness Evaluation) framework to version 1.0.0, migrating from Python 3.6-3.9 to Python 3.10+ with significant infrastructure updates.
- Migration from
setup.pyto modernpyproject.tomlpackaging configuration - Adoption of Python 3.10+ syntax features including union type operators (
|) andstrictparameter inzip()calls - Complete replacement of deprecated
pkg_resourceswith modernimportlib.resourcesfor package data access
Reviewed Changes
Copilot reviewed 45 out of 46 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | New modern packaging configuration replacing setup.py with dynamic versioning and development dependencies |
| wefe/word_embedding_model.py | Updated type annotations to use union operators and improved import ordering |
| wefe/utils.py | Modernized resource loading using importlib.resources and updated type hints |
| wefe/query.py | Applied union type syntax and added strict=False to zip calls for compatibility |
| wefe/preprocessing.py | Updated type annotations throughout preprocessing functions and utilities |
| Multiple metric files | Consistent updates to type annotations using modern union syntax |
| Multiple debias files | Updated type annotations and improved import organization |
| tests/ | Converted to modern pytest patterns and updated type checks |
| docs/ | Modernized Sphinx configuration and updated benchmark tables |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates to the WEFE project, focusing on modernizing the codebase, improving documentation, updating dependencies, and enhancing the development workflow. Key changes include migrating to Python 3.10, updating the licensing year, refining installation instructions, and improving benchmark documentation.
Dependency and Configuration Updates:
.flake8configuration, signaling a migration to Ruff for linting and formatting..pre-commit-config.yamlfromv0.12.3tov0.12.5..readthedocs.yamlto 3.12 and streamlined dependency installation withextra_requirements.Documentation Enhancements:
README.rstwith detailed installation options, updated dependency requirements, and improved contributing guidelines. Added instructions for testing, coverage, and building documentation.docs/benchmark/benchmark.rst) with updated metric compatibility tables and clarified extensibility details. [1] [2]Licensing and Packaging:
LICENSEfile to 2025.requirements.txtand dataset inclusions fromMANIFEST.in, reflecting a shift to modern packaging practices.These changes collectively modernize the WEFE project, enhance usability, and align it with contemporary Python development standards.