Skip to content

Commit

Permalink
Do not list known endpoints fps in check-endpoints.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kraktus committed Apr 1, 2024
1 parent bc51b80 commit 2a54469
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion check-endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import sys
import pathlib

# tablebase endpoints, defined dynamically with "/{variant}" in the code
FALSE_POSITIVES = ["/standard", "/atomic", "/antichess"]

if len(sys.argv) != 2 or not pathlib.Path(sys.argv[1]).is_file():
path = "../api/doc/specs/lichess-api.yaml"
Expand Down Expand Up @@ -51,6 +53,7 @@
if missing_endpoints:
print("\nMissing endpoints:\n")
for endp in sorted(missing_endpoints):
print(endp)
if endp not in FALSE_POSITIVES:
print(endp)
else:
print("No missing endpoints")

0 comments on commit 2a54469

Please sign in to comment.