diff options
author | Jakub Marcowski <chubercikbattle@gmail.com> | 2024-05-21 15:14:59 +0200 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-05-21 18:02:29 -0500 |
commit | d9f8ef68df1df8cf88d484fc22995f55a9c3f9aa (patch) | |
tree | 69f67b54e7fbb15be77877d5de8d3906fc41b882 /doc/tools/doc_status.py | |
parent | aaa4560729bf0161deb71789b47eba5623893845 (diff) | |
download | redot-engine-d9f8ef68df1df8cf88d484fc22995f55a9c3f9aa.tar.gz |
Update pre-commit hooks configuration to use `ruff` instead of `black`
Diffstat (limited to 'doc/tools/doc_status.py')
-rwxr-xr-x | doc/tools/doc_status.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tools/doc_status.py b/doc/tools/doc_status.py index a23c11b585..57c03bfdee 100755 --- a/doc/tools/doc_status.py +++ b/doc/tools/doc_status.py @@ -1,11 +1,11 @@ #!/usr/bin/env python3 import fnmatch -import os -import sys -import re import math +import os import platform +import re +import sys import xml.etree.ElementTree as ET from typing import Dict, List, Set @@ -286,7 +286,7 @@ class ClassStatus: status.progresses[tag.tag].increment(is_deprecated or is_experimental or has_descr) elif tag.tag in ["constants", "members", "theme_items"]: for sub_tag in list(tag): - if not sub_tag.text is None: + if sub_tag.text is not None: is_deprecated = "deprecated" in sub_tag.attrib is_experimental = "experimental" in sub_tag.attrib has_descr = len(sub_tag.text.strip()) > 0 |