This repository was archived by the owner on Nov 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-18
lines changed
pydocstyle_gitlab_code_quality Expand file tree Collapse file tree 4 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ codequality:
39
39
script :
40
40
- pip install pydocstyle pydocstyle-gitlab-code-quality
41
41
- pydocstyle program.py > pydocstyle-out.txt
42
- - PYTHONHASHSEED=0 pydocstyle-gitlab-code-quality < pydocstyle-out.txt > codequality.json
42
+ - pydocstyle-gitlab-code-quality < pydocstyle-out.txt > codequality.json
43
43
artifacts :
44
44
when : always
45
45
reports :
Original file line number Diff line number Diff line change 1
1
import json
2
2
import re
3
+ from hashlib import md5
3
4
from sys import stdin
4
5
from typing import Generator , TextIO
5
6
6
7
from .src .cq_types import Issue , LinesStructure , LocationStructure
7
8
from .src .encoder import DataclassJSONEncoder
8
- from .src .hash import get_hash
9
9
10
10
11
11
def get_pydocstyle_output (output : TextIO ) -> Generator [dict , None , None ]:
@@ -52,7 +52,7 @@ def get_code_quality_issues() -> Generator:
52
52
path = entry ["path" ],
53
53
lines = LinesStructure (begin = int (entry ["line" ])),
54
54
),
55
- fingerprint = get_hash ( tuple (entry .values ())),
55
+ fingerprint = md5 ( "" . join (entry .values ()). encode ( "utf-8" )). hexdigest ( ),
56
56
)
57
57
58
58
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- [build-system ]
2
- requires = [" setuptools" , " wheel" ]
3
- build-backend = " setuptools.build_meta"
4
-
5
1
[project ]
6
2
name = " pydocstyle-gitlab-code-quality"
7
- version = " 0.0.1 "
3
+ version = " 0.0.2 "
8
4
authors = [
9
- { name = " Aleksander Kluczka" , email = " aleksander.kluczka@gmail.com" },
5
+ { name = " Aleksander Kluczka" , email = " aleksander.kluczka@gmail.com" },
10
6
]
11
7
description = " Simple script to generate gitlab code quality report from output of pydocstyle."
12
8
readme = " README.md"
@@ -29,6 +25,10 @@ classifiers = [
29
25
"Homepage" = " https://github.com/vis4rd/pydocstyle-gitlab-code-quality"
30
26
"Bug Tracker" = " https://github.com/vis4rd/pydocstyle-gitlab-code-quality/issues"
31
27
28
+ [build-system ]
29
+ requires = [" setuptools" , " wheel" ]
30
+ build-backend = " setuptools.build_meta"
31
+
32
32
[project .scripts ]
33
33
pydocstyle-gitlab-code-quality = " pydocstyle_gitlab_code_quality:main"
34
34
You can’t perform that action at this time.
0 commit comments