diff --git a/gittensor/constants.py b/gittensor/constants.py index 4686425..e2ee9d9 100644 --- a/gittensor/constants.py +++ b/gittensor/constants.py @@ -21,7 +21,7 @@ DEFAULT_PROGRAMMING_LANGUAGE_WEIGHT = 0.12 TEST_FILE_CONTRIBUTION_WEIGHT = 0.05 # Extensions that use line-count scoring (capped at MAX_LINES_SCORED_FOR_NON_CODE_EXT) -# These are documentation, config, or data files +# These are documentation, config, data files, or template languages without tree-sitter support NON_CODE_EXTENSIONS = [ 'md', 'mdx', @@ -45,6 +45,7 @@ 'config', 'properties', 'plist', + 'erb', ] MAX_LINES_SCORED_FOR_NON_CODE_EXT = 300 diff --git a/gittensor/validator/weights/programming_languages.json b/gittensor/validator/weights/programming_languages.json index 2ed4c73..bfec788 100644 --- a/gittensor/validator/weights/programming_languages.json +++ b/gittensor/validator/weights/programming_languages.json @@ -28,6 +28,7 @@ "dockerfile": { "weight": 1.0, "language": "dockerfile" }, "elm": { "weight": 1.75, "language": "elm" }, "env": { "weight": 0.25 }, + "erb": { "weight": 0.35 }, "erl": { "weight": 1.5, "language": "erlang" }, "ex": { "weight": 1.5, "language": "elixir" }, "exs": { "weight": 1.5, "language": "elixir" },