Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ __pycache__
.pytest_cache
.python-version
*.egg-info
*.vscode
dist
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ repos:
rev: 22.3.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
Expand All @@ -117,6 +117,8 @@ repos:
- id: mypy
additional_dependencies:
- types-setuptools
- types-PyYAML
- types-requests
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ def get_version(version_file):
"schema",
"setuptools >= 24.2.0",
"tqdm",
"urllib3",
"validators",
"PyYAML",
"requests",
"loguru"
],
extras_require={
"test": [
Expand Down
11 changes: 6 additions & 5 deletions src/findcdn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
# package_name.__version__, which is used to get version information about this
# Python package.
from ._version import __version__ # noqa: F401
from .findcdn import interactive, main
from .findcdn_err import FileWriteError, InvalidDomain, OutputFileExists

# from .findcdn import interactive, main
# from .findcdn_err import FileWriteError, InvalidDomain, OutputFileExists
from .cdnEngine import analyze_domain, analyze_domains

__all__ = [
"main",
"__version__",
"interactive",
"OutputFileExists",
"InvalidDomain",
"FileWriteError",
"analyze_domain",
"analyze_domains",
]
2 changes: 1 addition & 1 deletion src/findcdn/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""This file defines the version of this module."""
__version__ = "0.1.0"
__version__ = "1.0.0"
10 changes: 5 additions & 5 deletions src/findcdn/cdnEngine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""cdnEngine library."""
from . import detectCDN
from .cdnEngine import Chef, DomainPot, run_checks
"""cdnEngine Logic."""

"""Define public exports."""
__all__ = ["DomainPot", "Chef", "run_checks", "detectCDN"]
from .analyzers import ARGS
from .cdnEngine import ANALYZERS, analyze_domain, analyze_domains

__all__ = ["ANALYZERS", "analyze_domain", "analyze_domains", "ARGS"]
Loading