-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump minor version * Implement metric leaders * Add changelog * Update client example * Add script for verifying dunder all is correct
- Loading branch information
Showing
13 changed files
with
301 additions
and
51 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 @@ | ||
# v0.2.0 (Feb 2023) | ||
|
||
## Bugfixes | ||
|
||
- Add some missing models to `__all__`. | ||
|
||
## Additions | ||
|
||
- Add leaders models: `SkillLeader`, `BossLeader`, `ActivityLeader`, `ComputedMetricLeader`, and | ||
`MetricLeaders`. | ||
- Add `metric_leaders` property to `GroupStatistics`. | ||
- Add deserialization methods for the new leader models. | ||
|
||
## Changes | ||
|
||
- `GroupStatistics.average_stats` is now a `Snapshot` rather than a `GroupSnapshot`. | ||
|
||
## Removals | ||
|
||
- Remove `GroupSnapshot` model since `created_at` on `Snapshot` is now guaranteed to be present. | ||
|
||
--- | ||
|
||
# v0.1.1 (Feb 2023) | ||
|
||
## Bugfixes | ||
|
||
- `EfficiencyService.get_global_leaderboard` now accepts a `both` kwarg, and will no longer | ||
erroneously allow you to pass many computed metrics as `*args`. | ||
|
||
## Changes | ||
|
||
- Relaxed the pinned dependencies for better compatibility. | ||
- The `metric` parameter to `EfficiencyService.get_global_leaderboard` is now defaulted to EHP. | ||
|
||
--- | ||
|
||
# v0.1.0 (Feb 2023) | ||
|
||
- Initial release! |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import typing as t | ||
|
||
|
||
def validate_alls() -> None: | ||
import wom | ||
|
||
should_include_module: t.Callable[[str], bool] = lambda m: ( | ||
m != "annotations" and m[0] != "_" and m[0].upper() != m[0] | ||
) | ||
|
||
modules_all: set[str] = set() | ||
modules = [m for m in wom.__dict__ if should_include_module(m)] | ||
modules_all.update(item for module in modules for item in wom.__dict__[module].__all__) | ||
lib_all = set(i for i in wom.__all__ if i not in modules) | ||
|
||
if missing := modules_all.difference(lib_all): | ||
raise Exception( | ||
"Missing exported items at top level:\n" + "\n".join(f" - {m}" for m in missing) | ||
) | ||
|
||
if missing := lib_all.difference(modules_all): | ||
raise Exception( | ||
"Missing exported items at module level:\n" + "\n".join(f" - {m}" for m in missing) | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
validate_alls() |
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
Oops, something went wrong.