Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit f0e457f

Browse files
authored
Merge pull request #535 from ninoseki/v1.0.0
v1.0.0
2 parents 89d9ef0 + 0cc7b14 commit f0e457f

37 files changed

+20346
-38773
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
repos:
2+
- repo: https://github.com/asottile/pyupgrade
3+
rev: v2.31.0
4+
hooks:
5+
- id: pyupgrade
6+
args: [--py38-plus]
7+
28
- repo: https://github.com/humitos/mirrors-autoflake
39
rev: v1.3
410
hooks:
@@ -10,12 +16,6 @@ repos:
1016
"--remove-unused-variable",
1117
]
1218

13-
- repo: https://github.com/asottile/pyupgrade
14-
rev: v2.31.0
15-
hooks:
16-
- id: pyupgrade
17-
args: [--py37-plus]
18-
1919
- repo: https://gitlab.com/pycqa/flake8
2020
rev: 4.0.1
2121
hooks:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ Uzen is an application combines YARA and headless Chrome. Uzen provides two main
1313

1414
It can be used for phishing and web-based c2 detection.
1515

16-
**Note:** This project is in an alpha state.
1716

1817
## Table of Contents
1918

2019
- [Requirements](https://github.com/ninoseki/uzen/wiki/Requirements)
20+
- [Architecture](https://github.com/ninoseki/uzen/wiki/Architecture)
2121
- [Installation](https://github.com/ninoseki/uzen/wiki/Installation)
2222
- [Configuration](https://github.com/ninoseki/uzen/wiki/Configuration)
23+
- [Alternatives](https://github.com/ninoseki/uzen/wiki/Alternatives)

app/schemas/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Device(APIModel):
3131
descriptor: DeviceDescriptor = Field(...)
3232

3333

34-
@lru_cache()
34+
@lru_cache(maxsize=1)
3535
def get_devices() -> List[Device]:
3636
devices: List[Device] = []
3737

app/schemas/snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class PlainSnapshot(SnapshotBasicAttributes, AbstractBaseModel, TimestampMixin):
144144
html_id: str = Field(...)
145145

146146
@classmethod
147-
@lru_cache()
147+
@lru_cache(maxsize=1)
148148
def field_keys(cls) -> List[str]:
149149
return list(cls.__fields__.keys())
150150

app/utils/minio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_client() -> Minio:
1717
)
1818

1919

20-
@lru_cache()
20+
@lru_cache(maxsize=1)
2121
def create_bucket_if_not_exists(client: Minio, bucket_name: str) -> None:
2222
policy = {
2323
"Version": "2012-10-17",

frontend/.eslintrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ module.exports = {
77
"plugin:vue/vue3-essential",
88
"eslint:recommended",
99
"@vue/typescript/recommended",
10-
"@vue/prettier",
11-
"@vue/prettier/@typescript-eslint",
10+
"plugin:prettier/recommended",
1211
],
1312
plugins: ["simple-import-sort"],
1413
parserOptions: {

frontend/jest.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
module.exports = {
22
preset: "@vue/cli-plugin-unit-jest/presets/typescript-and-babel",
3-
transform: {
4-
"^.+\\.vue$": "vue-jest",
5-
},
63
};

0 commit comments

Comments
 (0)