unstructured
rfctr(file): refactor detect_filetype()
#3429
Merged

rfctr(file): refactor detect_filetype() #3429

scanny merged 25 commits into main from scanny/rfctr-detect-filetype
scanny
scanny scanny force pushed from a8af5f57 to a224be04 2 years ago
scanny scanny force pushed from a224be04 to efce024a 2 years ago
scanny
scanny commented on 2024-07-22
scanny
scanny commented on 2024-07-22
scanny scanny force pushed from efce024a to fbcd99a4 2 years ago
scanny scanny force pushed from fbcd99a4 to b5e19a16 2 years ago
scanny scanny force pushed from b5e19a16 to 6c5c0c52 2 years ago
scanny scanny force pushed from 6c5c0c52 to 968bda48 2 years ago
scanny
scanny commented on 2024-07-23
scanny
scanny commented on 2024-07-23
scanny scanny requested a review from Coniferish Coniferish 2 years ago
Coniferish
Coniferish commented on 2024-07-23
Coniferish
Coniferish commented on 2024-07-23
Coniferish
Coniferish commented on 2024-07-23
Coniferish
Coniferish commented on 2024-07-23
Coniferish
Coniferish commented on 2024-07-23
Coniferish
Coniferish commented on 2024-07-23
Coniferish
Coniferish commented on 2024-07-23
Coniferish
Coniferish commented on 2024-07-23
Coniferish
Coniferish approved these changes on 2024-07-23
scanny rfctr(file): modernize a few type annotations
d8acc8bf
scanny rfctr(file): FileType.from_mime_type() accepts None
0e6676e7
scanny rfctr(file): relocate FileType.__lt__() test
af25a3d0
scanny rfctr(file): add _FileTypeDetectionContext
89b10e6e
scanny rfctr(file): install _FileTypeDetectionContext
871e804c
scanny rfctr(file): remove tests for obsolete behaviors
540f70ae
scanny rfctr(file): bulk-move detect_filetype() body
5c814ea7
scanny rfctr(file): improve expression in ._file_type
98a4d80a
scanny rfctr(file): extract ._file_type_from_content_type()
d3d72c41
scanny rfctr(file): add _TextFileDifferentiator
3bd9492e
scanny rfctr(file): install _TextFileDifferentiator
673fa51d
scanny rfctr(file): extract ._file_type_from_file_extension()
37c1ed8c
scanny rfctr(file): extract ._file_type_from_guessed_mime_type()
6a2991b5
scanny rfctr(file): subsume _is_code_mime_type()
ac5e5840
scanny rfctr(file): extract _ZipFileDifferentiator
59ccceb8
scanny rfctr(file): add strategy #1 tests
fc161d39
scanny rfctr(file): consolidate strategy #2 tests
ced6251e
scanny rfctr(file): add strategy #3 tests
609755c1
scanny rfctr(file): replace libmagic-not-available tests
43ae80e3
scanny rfctr(file): consolidate XML/HTML differentiation tests
e87e7440
scanny rfctr(file): consolidate Zip-differentiation tests
3330ac1f
scanny rfctr(file): consolidate source-code -> TXT tests
b3f126f0
scanny rfctr(file): final scrub bits & bobs on tests
e1688786
scanny rfctr(file): refine detect_filetype() interface
0aadc268
scanny fix: fixes to CI test-failures
42985881
scanny scanny force pushed from 968bda48 to 42985881 2 years ago
scanny scanny enabled auto-merge 2 years ago
scanny scanny merged 3fe5c094 into main 2 years ago
scanny scanny deleted the scanny/rfctr-detect-filetype branch 2 years ago
sentry

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone