-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APP-3868 - moving request_tc module of TcEx into submodule. (#1)
- Loading branch information
1 parent
226e40b
commit 03f3970
Showing
12 changed files
with
571 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Custom Dictionary Words | ||
backoff | ||
cblades | ||
digestmod | ||
forcelist | ||
POOLBLOCK | ||
POOLSIZE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#================================================= | ||
# Python Module Template | ||
# Version: 1.0.0 | ||
# Last Updated: 2018/01/19 | ||
#================================================= | ||
|
||
#------------------------------------------------- | ||
# Language Exclusions | ||
#------------------------------------------------- | ||
__pycache__ | ||
.pytest_cache | ||
*.env | ||
*.pyc | ||
.coverage | ||
.tox | ||
|
||
#------------------------------------------------- | ||
# Build Exclusions | ||
#------------------------------------------------- | ||
build | ||
deps | ||
dist | ||
target | ||
temp | ||
*.egg-info | ||
|
||
#------------------------------------------------- | ||
# IDE Exclusions | ||
#------------------------------------------------- | ||
.c9 | ||
.history | ||
.idea | ||
.project | ||
.python-version | ||
.settings | ||
.vs | ||
.vscode | ||
nbproject | ||
*.swp | ||
*.vim | ||
|
||
#------------------------------------------------- | ||
# Module Specific Exclusions | ||
#------------------------------------------------- | ||
__main__.py | ||
lib* | ||
*.log | ||
local-* | ||
log/* | ||
^requirements.txt | ||
permutations.json | ||
templates | ||
threatconnect* | ||
tests/reports/* | ||
TODO.md | ||
|
||
#------------------------------------------------- | ||
# Other Nonsense | ||
#------------------------------------------------- | ||
codeql-tcex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-byte-order-marker | ||
- id: check-builtin-literals | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: detect-aws-credentials | ||
args: | ||
- --allow-missing-credentials | ||
- id: detect-private-key | ||
- id: double-quote-string-fixer | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: pretty-format-json | ||
args: | ||
- --autofix | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/pycqa/bandit | ||
rev: 1.7.4 | ||
hooks: | ||
- id: bandit | ||
exclude: | | ||
(?x)( | ||
^tests/ | ||
) | ||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.2 | ||
hooks: | ||
- id: codespell | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v5.10.1 | ||
hooks: | ||
- id: isort | ||
exclude: | | ||
(?x)( | ||
^app_init/ | ||
) | ||
- repo: https://github.com/pycqa/pydocstyle | ||
rev: 6.3.0 | ||
hooks: | ||
- id: pydocstyle | ||
args: | ||
- --ignore=D104,D202,D203,D213,D300,D301,D400,D402,D406,D407,D413,D415 | ||
exclude: | | ||
(?x)( | ||
^tcex/threat_intelligence/| | ||
^tests/ | ||
) | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: | ||
- --py311-plus | ||
- repo: https://github.com/yunojuno/pre-commit-xenon | ||
rev: v0.1 | ||
hooks: | ||
- id: xenon | ||
args: ['--max-average=B', '-e=tests*'] | ||
- repo: local | ||
hooks: | ||
- id: pyright | ||
entry: pyright | ||
language: system | ||
name: pyright | ||
types: [python] | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
entry: pylint | ||
language: system | ||
name: pylint | ||
types: [python] | ||
args: ['--jobs=2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""TcEx Framework Module""" | ||
from .requests_tc import RequestsTc | ||
from .tc_session import TcSession | ||
|
||
__all__ = ['RequestsTc', 'TcSession'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""TcEx Framework Module""" |
Oops, something went wrong.