NatLibFi/Annif

View on GitHub
smarter initialization of optional analyzers; use importlib to test optional feature availability #2389
Osma Suominen authored fd8b9a79
complete00:00:23
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: Download complete
a9696c7f4cd8: Download complete
ab6db1bc80d0: Verifying Checksum
ab6db1bc80d0: Download complete
51b9219e6e44: Verifying Checksum
51b9219e6e44: Download complete
e3c7e34cb08c: Download complete
0de813e89c33: Download complete
ab6db1bc80d0: Pull complete
bf17e9a1c113: Pull complete
43b5f16a0c84: Download complete
328f3a57c882: Verifying Checksum
328f3a57c882: Download complete
4f8d95c214b1: Pull 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
2e56add6654f: Waiting
6c87f215a2be: Waiting
c2b31566ca3d: Waiting
21f0a0866768: Verifying Checksum
21f0a0866768: Download complete
e00d546a75ad: Verifying Checksum
e00d546a75ad: Download complete
cd9d3946aa16: Verifying Checksum
cd9d3946aa16: Download complete
e00d546a75ad: Pull complete
21f0a0866768: Pull complete
6c87f215a2be: Verifying Checksum
6c87f215a2be: Download complete
c2b31566ca3d: Verifying Checksum
c2b31566ca3d: Download complete
cd9d3946aa16: Pull complete
2e56add6654f: Download 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-11-21T15:20:15.153399 #1]  WARN -- : Skipping annif/static/js/axios.min.js due to CC::Parser::Client::HTTPError
W, [2024-11-21T15:20:15.153453 #1]  WARN -- : Response status: 422
W, [2024-11-21T15:20:15.157848 #1]  WARN -- : Skipping annif/static/js/vue.min.js due to CC::Parser::Client::HTTPError
W, [2024-11-21T15:20:15.157879 #1]  WARN -- : Response status: 422
W, [2024-11-21T15:20:15.160149 #1]  WARN -- : Skipping annif/static/js/bootstrap.min.js due to CC::Parser::Client::HTTPError
W, [2024-11-21T15:20:15.160177 #1]  WARN -- : Response status: 422
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-11-21T15:20:19.409334 #1]  INFO -- : Skipping file ./annif/hfh_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 263
    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...