[web] Add .py to defaultTextExtensions

GitOrigin-RevId: 0880c01f6e3b4267f6cb790a44c6094738ab2229
This commit is contained in:
Domagoj Kriskovic
2026-04-29 12:56:15 +02:00
committed by Copybot
parent 9e677a2c1e
commit 117a783f21
2 changed files with 4 additions and 3 deletions

View File

@@ -55,6 +55,7 @@ const defaultTextExtensions = [
'ldf',
'rmd',
'lua',
'py',
'gv',
'mf',
'yml',

View File

@@ -337,7 +337,7 @@ describe('FileTypeManager', function () {
it('should recognise new binary files as binary', async function (ctx) {
const { binary } = await ctx.FileTypeManager.promises.getType(
'/file.py',
'/file.eps',
'latin1.tex',
null
)
@@ -347,7 +347,7 @@ describe('FileTypeManager', function () {
it('should recognise existing binary files as binary', async function (ctx) {
const { binary } = await ctx.FileTypeManager.promises.getType(
'/file.py',
'/file.eps',
'latin1.tex',
'file'
)
@@ -357,7 +357,7 @@ describe('FileTypeManager', function () {
it('should preserve existing non-binary files as non-binary', async function (ctx) {
const { binary } = await ctx.FileTypeManager.promises.getType(
'/file.py',
'/file.eps',
'latin1.tex',
'doc'
)