Skip to content

Commit

Permalink
fix: examples black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrennand committed May 18, 2024
1 parent 5dddc7c commit e5c3862
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
https://developers.virustotal.com/v2.0/reference/comments-get
https://developers.virustotal.com/v2.0/reference/comments-put
"""

from virustotal_python import Virustotal
from base64 import urlsafe_b64encode

Expand Down
1 change: 1 addition & 0 deletions examples/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* v3 documentation - https://developers.virustotal.com/reference/collections
"""

from virustotal_python import Virustotal

API_KEY = "<VirusTotal API Key>"
Expand Down
1 change: 1 addition & 0 deletions examples/domain_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* v2 documentation - https://developers.virustotal.com/v2.0/reference/domain-report
"""

from virustotal_python import Virustotal
from pprint import pprint

Expand Down
1 change: 1 addition & 0 deletions examples/file_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* v2 documentation - https://developers.virustotal.com/v2.0/reference/file-report
"""

from virustotal_python import Virustotal
from pprint import pprint

Expand Down
1 change: 1 addition & 0 deletions examples/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* v3 documentation - https://developers.virustotal.com/reference/graphs
"""

from virustotal_python import Virustotal

API_KEY = "<VirusTotal API Key>"
Expand Down
1 change: 1 addition & 0 deletions examples/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* v2 documentation - https://developers.virustotal.com/v2.0/reference/ip-address-report
"""

from virustotal_python import Virustotal
from pprint import pprint

Expand Down
1 change: 1 addition & 0 deletions examples/old_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Examples for versions >=0.1.0 head to /examples directory.
"""

from virustotal_python import Virustotal
from pprint import pprint
import os.path
Expand Down
1 change: 1 addition & 0 deletions examples/scan_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* v2 documentation - https://developers.virustotal.com/v2.0/reference/file-scan
"""

from virustotal_python import Virustotal
import os.path
from pprint import pprint
Expand Down
1 change: 1 addition & 0 deletions examples/scan_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
https://developers.virustotal.com/v2.0/reference/url-scan
https://developers.virustotal.com/v2.0/reference/url-report
"""

from virustotal_python import Virustotal
from pprint import pprint
from base64 import urlsafe_b64encode
Expand Down
1 change: 1 addition & 0 deletions examples/searchmetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
https://developers.virustotal.com/reference/search-1
https://developers.virustotal.com/reference/metadata
"""

from virustotal_python import Virustotal

API_KEY = "<VirusTotal API Key>"
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PySocks = { version = "^1.7.1", optional = true }
socks = ["PySocks"]

[tool.poetry.dev-dependencies]
black = "24.4.2 "
black = "^24.4.2"
twine = "^5.1.0"
pytest = "^8.2.0"
pytest-mock = "^3.14.0"
Expand Down
1 change: 1 addition & 0 deletions tests/test_virustotal_python.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests for virustotal-python.
"""

import virustotal_python
import json
import requests
Expand Down
1 change: 1 addition & 0 deletions virustotal_python/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""A Python library to interact with the public VirusTotal v3 and v2 APIs.
"""

from virustotal_python.virustotal import Virustotal
from virustotal_python.virustotal import VirustotalResponse
from virustotal_python.virustotal import VirustotalError
Expand Down
1 change: 1 addition & 0 deletions virustotal_python/virustotal.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

import requests
import os
from typing import Union
Expand Down

0 comments on commit e5c3862

Please sign in to comment.