We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0410d3 commit f4d674cCopy full SHA for f4d674c
problemtools/verifyproblem.py
@@ -754,9 +754,13 @@ def check(self, context: Context) -> bool:
754
self._check_res = True
755
756
if not self.statements:
757
- allowed_statements = ', '.join(
758
- f'problem.{ext}, problem.[a-z][a-z].{ext}' for ext in self.problem.format.statement_extensions
759
- )
+ if self.problem.format is FormatVersion.LEGACY:
+ allowed_statements = ', '.join(
+ f'problem.{ext}, problem.<language>.{ext}' for ext in self.problem.format.statement_extensions
760
+ )
761
+ else:
762
+ allowed_statements = ', '.join(f'problem.<language>.{ext}' for ext in self.problem.format.statement_extensions)
763
+
764
self.error(
765
f'No problem statements found (expected file of one of following forms in directory {self.problem.format.statement_directory}/: {allowed_statements})'
766
)
0 commit comments