Skip to content

Commit

Permalink
APP-3868 - moving request_tc module of TcEx into submodule. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsummers-tc authored Mar 30, 2023
1 parent 226e40b commit 03f3970
Show file tree
Hide file tree
Showing 12 changed files with 571 additions and 201 deletions.
7 changes: 7 additions & 0 deletions .cspell/custom-dictionary-workspace.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Custom Dictionary Words
backoff
cblades
digestmod
forcelist
POOLBLOCK
POOLSIZE
60 changes: 60 additions & 0 deletions .gitignore
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
89 changes: 89 additions & 0 deletions .pre-commit-config.yaml
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']
201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

5 changes: 5 additions & 0 deletions __init__.py
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']
1 change: 1 addition & 0 deletions auth/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""TcEx Framework Module"""
Loading

0 comments on commit 03f3970

Please sign in to comment.