unhiding vscode
This commit is contained in:
1 parent
3b82f4c309
commit
838ed91c5f
7 files changed
+37
-4
No files matched your search
+1
-1
@@ -8,7 +8,6 @@ docs/_build
|
|||||||
tests/*.xml
|
tests/*.xml
|
||||||
tests/*.txt
|
tests/*.txt
|
||||||
.idea/
|
.idea/
|
||||||
.vscode
|
|
||||||
tests/samples/output
|
tests/samples/output
|
||||||
./samples
|
./samples
|
||||||
**__pycache**\
|
**__pycache**\
|
||||||
@@ -16,3 +15,4 @@ tests/samples/output
|
|||||||
.ipynb_checkpoints
|
.ipynb_checkpoints
|
||||||
venv
|
venv
|
||||||
oldpdfmajor
|
oldpdfmajor
|
||||||
|
.tmp*
|
||||||
Vendored
+15
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"python.pythonPath": "venv/bin/python",
|
||||||
|
"python.formatting.provider": "black",
|
||||||
|
"editor.tabSize": 2,
|
||||||
|
"python.testing.unittestArgs": [
|
||||||
|
"-v",
|
||||||
|
"-s",
|
||||||
|
"./tests",
|
||||||
|
"-p",
|
||||||
|
"test_*.py"
|
||||||
|
],
|
||||||
|
"python.testing.pytestEnabled": false,
|
||||||
|
"python.testing.nosetestsEnabled": false,
|
||||||
|
"python.testing.unittestEnabled": true
|
||||||
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pdfmajor.lexer.token import TokenComment
|
|
||||||
from typing import Any, Dict, NamedTuple, Optional, Tuple
|
from typing import Any, Dict, NamedTuple, Optional, Tuple
|
||||||
|
|
||||||
from pdfmajor.lexer import iter_tokens
|
from pdfmajor.lexer import iter_tokens
|
||||||
|
from pdfmajor.lexer.token import TokenComment
|
||||||
from pdfmajor.streambuffer import BufferStream
|
from pdfmajor.streambuffer import BufferStream
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pdfmajor.lexer.token import TokenComment
|
|
||||||
from typing import Any, Dict, NamedTuple, Optional, Tuple
|
from typing import Any, Dict, NamedTuple, Optional, Tuple
|
||||||
|
|
||||||
from pdfmajor.lexer import iter_tokens
|
from pdfmajor.lexer import iter_tokens
|
||||||
|
from pdfmajor.lexer.token import TokenComment
|
||||||
from pdfmajor.streambuffer import BufferStream
|
from pdfmajor.streambuffer import BufferStream
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from dataclasses import dataclass
|
||||||
|
from typing import List, NamedTuple
|
||||||
|
|
||||||
|
|
||||||
|
class PDFHealthLog(NamedTuple):
|
||||||
|
"""A log of for an issue that the pdf file contains"""
|
||||||
|
|
||||||
|
issue_name: str
|
||||||
|
additional_info: str
|
||||||
|
|
||||||
|
|
||||||
|
class PDFHealthReport(List[PDFHealthLog]):
|
||||||
|
"""a list of all issues that occured during the parsing of the document"""
|
||||||
|
|
||||||
|
def write(self, issue_name: str, additional_info: str):
|
||||||
|
self.append(PDFHealthLog(issue_name, additional_info))
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import io
|
import io
|
||||||
from typing import Iterator, NamedTuple, Optional
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
from typing import Iterator, NamedTuple, Optional
|
||||||
|
|
||||||
from pdfmajor.exceptions import PDFMajorException
|
from pdfmajor.exceptions import PDFMajorException
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user