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:
3939 script :
4040 - pip install pydocstyle pydocstyle-gitlab-code-quality
4141 - 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
4343 artifacts :
4444 when : always
4545 reports :
Original file line number Diff line number Diff line change 11import json
22import re
3+ from hashlib import md5
34from sys import stdin
45from typing import Generator , TextIO
56
67from .src .cq_types import Issue , LinesStructure , LocationStructure
78from .src .encoder import DataclassJSONEncoder
8- from .src .hash import get_hash
99
1010
1111def get_pydocstyle_output (output : TextIO ) -> Generator [dict , None , None ]:
@@ -52,7 +52,7 @@ def get_code_quality_issues() -> Generator:
5252 path = entry ["path" ],
5353 lines = LinesStructure (begin = int (entry ["line" ])),
5454 ),
55- fingerprint = get_hash ( tuple (entry .values ())),
55+ fingerprint = md5 ( "" . join (entry .values ()). encode ( "utf-8" )). hexdigest ( ),
5656 )
5757
5858
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-
51[project ]
62name = " pydocstyle-gitlab-code-quality"
7- version = " 0.0.1 "
3+ version = " 0.0.2 "
84authors = [
9- { name = " Aleksander Kluczka" , email = " aleksander.kluczka@gmail.com" },
5+ { name = " Aleksander Kluczka" , email = " aleksander.kluczka@gmail.com" },
106]
117description = " Simple script to generate gitlab code quality report from output of pydocstyle."
128readme = " README.md"
@@ -29,6 +25,10 @@ classifiers = [
2925"Homepage" = " https://github.com/vis4rd/pydocstyle-gitlab-code-quality"
3026"Bug Tracker" = " https://github.com/vis4rd/pydocstyle-gitlab-code-quality/issues"
3127
28+ [build-system ]
29+ requires = [" setuptools" , " wheel" ]
30+ build-backend = " setuptools.build_meta"
31+
3232[project .scripts ]
3333pydocstyle-gitlab-code-quality = " pydocstyle_gitlab_code_quality:main"
3434
You can’t perform that action at this time.
0 commit comments