Kattis / problemtools

Tools to manage problem packages using the Kattis problem package format.
MIT License
101 stars 70 forks source link

Basic support for (programming) languages in problem.yaml #233

Closed Tagl closed 9 months ago

Tagl commented 12 months ago

I needed this functionality for a problem and noticed the not supported error. Definitely needs some polishing.

This PR adds support for filtering supported languages by specifying them in problem.yaml

RagnarGrootKoerkamp commented 12 months ago

Oh we also just added this for BAPCtools, RagnarGrootKoerkamp/bapctools/pull/256. We use the name field in problem.yaml for this (as per the spec). Can you explain what your implementation does?

Tagl commented 12 months ago

It simply creates a new Languages object that stores the supported programming languages, and replaces the global config with that before running all the checks. The new config will only include the languages with the specified language ids. If a language id is specified but does not exist in the global language config then an error is reported.

I notice now that the default should be all, so will have to change that.

RagnarGrootKoerkamp commented 12 months ago

Oh this is about programming languages, not problem statement languages. nevermind my previous comment then.