Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIP and pre-commit updates #335

Merged
merged 2 commits into from
Oct 25, 2024
Merged
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
5 changes: 5 additions & 0 deletions .cspell/custom-dictionary-workspace.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ escalatee
escalatees
ESUP
exitstatus
expref
fakeredis
feedapiservice
fget
fillvalue
filterwarnings
FIPS
firstparty
fixdate
fnmatch
Expand Down Expand Up @@ -188,6 +191,7 @@ stmts
stringarray
Stringdummy
strptime
subexpression
suborg
subtechniques
suricata
Expand Down Expand Up @@ -244,6 +248,7 @@ urlencoding
urllib
userdata
usergroup
Variadict
virtualenv
walklevel
Weaponization
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -27,19 +27,19 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/bandit
rev: 1.7.4
rev: 1.7.10
hooks:
- id: bandit
exclude: |
(?x)(
^tests/
)
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v6.2.0
rev: v8.15.1
hooks:
- id: cspell
exclude: |
Expand All @@ -66,7 +66,7 @@ repos:
^tests/
)
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.18.0
hooks:
- id: pyupgrade
args:
Expand Down
11 changes: 6 additions & 5 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Release Notes

## 4.0.7
- APP-4601 - [pleb] add jmespath custom functions to pleb to centralize that functionality to be used across apps.
- APP-4604 - [transform] Add Processing Functions class to include pre-defined functions that can be used in transform builder and across TIE apps.
- APP-4605 - [transform] normalize the way null/empty values are handled in transforms, and include empty string ''.
- APP-4620 - [transform] Add structured/contextualized exceptions to transform to be able to deliver detailed error messages to users.
- APP-4632 - [transform] Add attribute.pinned field
- APP-4601 - [pleb] Added jmespath custom functions to pleb to centralize functionality
- APP-4604 - [transform] Added standard processing functions class
- APP-4605 - [transform] Normalized the way null/empty values are handled in transforms (includes '')
- APP-4620 - [transform] Added structured/contextualized exceptions to transform
- APP-4632 - [transform] Added support for attribute.pinned field
- APP-4640 - [api] Updated API hashing method to use SHA256 for FIPS compliance


## 4.0.6
Expand Down
1 change: 1 addition & 0 deletions tcex/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# ruff: noqa: F401

# standard library
Expand Down
1 change: 1 addition & 0 deletions tcex/api/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# third-party
from requests import Session # TYPE-CHECKING

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/tc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# third-party
from requests import Session # TYPE-CHECKING

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/util/threat_intel_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import logging
import re
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/batch/attribute.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import json
from collections.abc import Callable
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/batch/batch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import gzip
import json
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/batch/batch_submit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import gzip
import json
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/batch/batch_writer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import gzip
import hashlib
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/batch/group.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import json
import uuid
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/batch/indicator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import json
import uuid
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/batch/security_label.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import json

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/batch/tag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import json
from collections.abc import Callable
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/datastore/cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import logging
from collections.abc import Callable
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/datastore/datastore.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import logging

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/metric/metric.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import logging

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/notification/notification.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import json
import logging
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

from .threat_intelligence import ThreatIntelligence

__all__ = ['ThreatIntelligence']
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/mapping/group/group.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING
from urllib.parse import quote_plus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import json
from typing import TYPE_CHECKING
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING
from urllib.parse import quote_plus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING
from urllib.parse import quote_plus
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/mapping/mapping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import json
import logging
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/mapping/owner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/mapping/tag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/mapping/tags.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/mapping/task.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING
from urllib.parse import quote_plus
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/mapping/victim.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
from typing import TYPE_CHECKING

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import hashlib
import logging
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/threat_intelligence/threat_intelligence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import logging
from functools import lru_cache
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v2/v2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# third-party
from requests import Session # TYPE-CHECKING

Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v3/_gen/_gen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import os
from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions tcex/api/tc/v3/_gen/_gen_abc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""TcEx Framework Module"""

# standard library
import json
import os
Expand Down
Loading
Loading