Skip to content

Commit

Permalink
Merge pull request #6 from CybercentreCanada/update/migrate
Browse files Browse the repository at this point in the history
Update/migrate [dev]
  • Loading branch information
cccs-kevin authored May 29, 2023
2 parents 10aed6d + b1dfbdb commit 3eafc23
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
"editor.formatOnSave": true,
"editor.rulers": [
120
],
"editor.tabSize": 4,
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 120,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"isort.args": [
"-l",
"120",
"--profile=black",
// "--src=${workspaceFolder}"
],
"python.formatting.autopep8Args": [
"--max-line-length",
"120",
"--experimental"
],
"python.formatting.provider": "autopep8",
"python.formatting.blackArgs": [
"--line-length=120"
],
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--max-line-length=120",
//Added the ignore of E203 for now : https://github.com/PyCQA/pycodestyle/issues/373
"--ignore=E203,W503"
],
"python.linting.pylintEnabled": false,
}
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ RUN apt-get update && apt-get install -y p7zip-full && rm -rf /var/lib/apt/lists
# Switch to assemblyline user
USER assemblyline

RUN pip install --no-cache-dir --user biplist && rm -rf ~/.cache/pip
# Install python dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --user --requirement requirements.txt && rm -rf ~/.cache/pip

# Copy IPArse service code
WORKDIR /opt/al_service
Expand Down
5 changes: 2 additions & 3 deletions iparse/iparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
import unicodedata
import zipfile
from collections import defaultdict
from subprocess import Popen, PIPE
from subprocess import PIPE, Popen

import biplist

from assemblyline.common.str_utils import safe_str
from assemblyline_v4_service.common.balbuzard.patterns import PatternMatch
from assemblyline_service_utilities.common.balbuzard.patterns import PatternMatch
from assemblyline_v4_service.common.base import ServiceBase
from assemblyline_v4_service.common.result import Result, ResultSection

Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
assemblyline-service-utilities
biplist

0 comments on commit 3eafc23

Please sign in to comment.