aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/tidy.py
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-06-18 11:22:08 +0200
committerGitHub <noreply@github.com>2024-06-18 09:22:08 +0000
commit4a7f3bac7cadff129d15e3b0a6471a7ed3c4aaa4 (patch)
treeac47671f7487383aa11f9a3f2e531e9ee34e50a6 /python/tidy/tidy.py
parent42b09d483fbcc79345844d34b88b3ff4ae7a9735 (diff)
downloadservo-4a7f3bac7cadff129d15e3b0a6471a7ed3c4aaa4.tar.gz
servo-4a7f3bac7cadff129d15e3b0a6471a7ed3c4aaa4.zip
Use workspace definitions for all crates and update to the 2021 edition (#32544)
Diffstat (limited to 'python/tidy/tidy.py')
-rw-r--r--python/tidy/tidy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tidy/tidy.py b/python/tidy/tidy.py
index 2129cd05114..21179885148 100644
--- a/python/tidy/tidy.py
+++ b/python/tidy/tidy.py
@@ -465,6 +465,8 @@ def check_toml(file_name, lines):
yield (idx + 1, "found asterisk instead of minimum version number")
for license_line in licenses_toml:
ok_licensed |= (license_line in line)
+ if "license.workspace" in line:
+ ok_licensed = True
if not ok_licensed:
yield (0, ".toml file should contain a valid license.")