I'm currently working in an eLearning platform, and I'm trying to add some PEP8 validation to the assignment solutions students are submitting to the system in order to give then some extra feedback about how good or bad the solution they proposed is.
I found that using the python pep8
package it's not that simple to check PEP8 errors just in a chunk of code (in my case, it would be the posted solution to the assignment), without specifying any path to a specific file in the filesystem.
Is it actually possible or the pep8
library doesn't allow it? Of course I could save the posted solution in a tmp file and run the validation from there, but I would like to avoid this extra step.
Did anyone have the same issue?