unhiding vscode

This commit is contained in:
ari committed 2020-10-30 14:14:39 -04:00
1 parent 3b82f4c309
commit 838ed91c5f
7 files changed
+37 -4

No files matched your search

+1 -1
View File
@@ -8,7 +8,6 @@ docs/_build
tests/*.xml
tests/*.txt
.idea/
.vscode
tests/samples/output
./samples
**__pycache**\
@@ -16,3 +15,4 @@ tests/samples/output
.ipynb_checkpoints
venv
oldpdfmajor
.tmp*
+15
View File
@@ -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 -1
View File
@@ -1,8 +1,8 @@
from datetime import datetime
from pdfmajor.lexer.token import TokenComment
from typing import Any, Dict, NamedTuple, Optional, Tuple
from pdfmajor.lexer import iter_tokens
from pdfmajor.lexer.token import TokenComment
from pdfmajor.streambuffer import BufferStream
+1 -1
View File
@@ -1,8 +1,8 @@
from datetime import datetime
from pdfmajor.lexer.token import TokenComment
from typing import Any, Dict, NamedTuple, Optional, Tuple
from pdfmajor.lexer import iter_tokens
from pdfmajor.lexer.token import TokenComment
from pdfmajor.streambuffer import BufferStream
+16
View File
@@ -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))
+2 -1
View File
@@ -1,6 +1,7 @@
import io
from typing import Iterator, NamedTuple, Optional
from contextlib import contextmanager
from typing import Iterator, NamedTuple, Optional
from pdfmajor.exceptions import PDFMajorException
+1
View File
@@ -20,6 +20,7 @@ with open("README.md") as readme_file:
"mypy==0.790",
"black==20.8b1",
"bandit==1.6.2",
"isort==5.6.4",
]
},
"description": "PDF parser",