NatLibFi/Annif

View on GitHub
Refactor to address quality complains #2249
Juho Inkinen authored d14ff302
complete00:00:25
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
WARNING: 'engines' has been deprecated, please use 'plugins' instead
WARNING: 'ratings' has been deprecated, and will not be used
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-pep8:b25
b25: Pulling from codeclimate/codeclimate-pep8
ab6db1bc80d0: Pulling fs layer
bf17e9a1c113: Pulling fs layer
4f8d95c214b1: Pulling fs layer
0de813e89c33: Pulling fs layer
a9696c7f4cd8: Pulling fs layer
51b9219e6e44: Pulling fs layer
e3c7e34cb08c: Pulling fs layer
328f3a57c882: Pulling fs layer
43b5f16a0c84: Pulling fs layer
0de813e89c33: Waiting
a9696c7f4cd8: Waiting
51b9219e6e44: Waiting
328f3a57c882: Waiting
e3c7e34cb08c: Waiting
43b5f16a0c84: Waiting
bf17e9a1c113: Verifying Checksum
bf17e9a1c113: Download complete
4f8d95c214b1: Verifying Checksum
4f8d95c214b1: Download complete
a9696c7f4cd8: Verifying Checksum
a9696c7f4cd8: Download complete
ab6db1bc80d0: Verifying Checksum
ab6db1bc80d0: Pull complete
e3c7e34cb08c: Download complete
51b9219e6e44: Verifying Checksum
51b9219e6e44: Download complete
328f3a57c882: Verifying Checksum
328f3a57c882: Download complete
bf17e9a1c113: Pull complete
43b5f16a0c84: Verifying Checksum
43b5f16a0c84: Download complete
4f8d95c214b1: Pull complete
0de813e89c33: Verifying Checksum
0de813e89c33: Download complete
0de813e89c33: Pull complete
a9696c7f4cd8: Pull complete
51b9219e6e44: Pull complete
e3c7e34cb08c: Pull complete
328f3a57c882: Pull complete
43b5f16a0c84: Pull complete
Digest: sha256:75f70c714bc5f9e65359d45469a1fe7c1b181a15aee8fbabec7e23c65b19d447
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-pep8:b25
docker pull codeclimate/codeclimate-radon:b695
b695: Pulling from codeclimate/codeclimate-radon
e00d546a75ad: Pulling fs layer
21f0a0866768: Pulling fs layer
cd9d3946aa16: Pulling fs layer
2e56add6654f: Pulling fs layer
6c87f215a2be: Pulling fs layer
c2b31566ca3d: Pulling fs layer
c2b31566ca3d: Waiting
2e56add6654f: Waiting
6c87f215a2be: Waiting
21f0a0866768: Verifying Checksum
21f0a0866768: Download complete
e00d546a75ad: Download complete
cd9d3946aa16: Verifying Checksum
cd9d3946aa16: Download complete
6c87f215a2be: Download complete
e00d546a75ad: Pull complete
21f0a0866768: Pull complete
c2b31566ca3d: Download complete
2e56add6654f: Verifying Checksum
2e56add6654f: Download complete
cd9d3946aa16: Pull complete
2e56add6654f: Pull complete
6c87f215a2be: Pull complete
c2b31566ca3d: Pull complete
Digest: sha256:dfeb7edc634b4e2f851f3c788f7c21bd8bae097d4c66af722c76a6ba51121f98
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-radon:b695
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2024-04-12T12:25:34.703714 #1]  WARN -- : Skipping annif/static/js/axios.min.js due to CC::Parser::Client::HTTPError
W, [2024-04-12T12:25:34.703769 #1]  WARN -- : Response status: 422
W, [2024-04-12T12:25:34.708973 #1]  WARN -- : Skipping annif/static/js/vue.min.js due to CC::Parser::Client::HTTPError
W, [2024-04-12T12:25:34.709019 #1]  WARN -- : Response status: 422
W, [2024-04-12T12:25:34.711379 #1]  WARN -- : Skipping annif/static/js/bootstrap.min.js due to CC::Parser::Client::HTTPError
W, [2024-04-12T12:25:34.711409 #1]  WARN -- : Response status: 422
6
duplication
View output
13
Parser process id: 13
codeclimate-parser socket not present
waiting 1s...
I, [2024-04-12T12:25:38.144230 #1]  INFO -- : Skipping file ./annif/cli_util.py due to exception (CC::Engine::Analyzers::ParserError): `python3 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python3/lib/python3.7/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 445
    while chunk := fp.read(size):
                 ^
SyntaxError: invalid syntax
7
pep8
pep8 engine documentation
View output
.github/ docs/ annif/
8
radon
radon engine documentation
View output
Running radon3...