GeriLife/caregiving

View on GitHub
Merge pull request #99 from GeriLife/upgrade-pre-commit #200
Brylie Christopher Oxley authored a month agod9d1c1e1
complete00:00:41
Your first build completed successfully!
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
WARNING: missing 'version' key. Please add `version: "2"`
WARNING: unknown engine or channel <flake8:stable>
WARNING: unknown engine or channel <isort:stable>
WARNING: unknown engine or channel <mccabe:stable>
WARNING: unknown engine or channel <mypy:stable>
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-black:b1058
b1058: Pulling from codeclimate/codeclimate-black
345e3491a907: Pulling fs layer
57671312ef6f: Pulling fs layer
5e9250ddb7d0: Pulling fs layer
07318ed61f01: Pulling fs layer
ddd2f39cd424: Pulling fs layer
df25d5beb216: Pulling fs layer
d961feeb0441: Pulling fs layer
83c8bd201a12: Pulling fs layer
5bce6627a0c4: Pulling fs layer
ce6b953d3e62: Pulling fs layer
9921c94708b9: Pulling fs layer
94c6ee8cbbc0: Pulling fs layer
df25d5beb216: Waiting
07318ed61f01: Waiting
ddd2f39cd424: Waiting
83c8bd201a12: Waiting
d961feeb0441: Waiting
5bce6627a0c4: Waiting
9921c94708b9: Waiting
ce6b953d3e62: Waiting
5e9250ddb7d0: Verifying Checksum
5e9250ddb7d0: Download complete
57671312ef6f: Verifying Checksum
57671312ef6f: Download complete
ddd2f39cd424: Download complete
07318ed61f01: Verifying Checksum
07318ed61f01: Download complete
345e3491a907: Verifying Checksum
345e3491a907: Download complete
83c8bd201a12: Verifying Checksum
83c8bd201a12: Download complete
df25d5beb216: Verifying Checksum
df25d5beb216: Download complete
ce6b953d3e62: Verifying Checksum
ce6b953d3e62: Download complete
5bce6627a0c4: Verifying Checksum
5bce6627a0c4: Download complete
94c6ee8cbbc0: Verifying Checksum
94c6ee8cbbc0: Download complete
9921c94708b9: Download complete
d961feeb0441: Verifying Checksum
d961feeb0441: Download complete
345e3491a907: Pull complete
57671312ef6f: Pull complete
5e9250ddb7d0: Pull complete
07318ed61f01: Pull complete
ddd2f39cd424: Pull complete
df25d5beb216: Pull complete
d961feeb0441: Pull complete
83c8bd201a12: Pull complete
5bce6627a0c4: Pull complete
ce6b953d3e62: Pull complete
9921c94708b9: Pull complete
94c6ee8cbbc0: Pull complete
Digest: sha256:4b73b361e5bd84cc9ba1f1866441120197c59f3de5d76c98dfad76f24acba427
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-black:b1058
docker pull codeclimate/codeclimate-stylelint:b1017
b1017: Pulling from codeclimate/codeclimate-stylelint
5d20c808ce19: Already exists
0aca3696fac2: Pulling fs layer
371e3eac71b2: Pulling fs layer
0efa87b6cc73: Pulling fs layer
52c6641357c0: Pulling fs layer
a960b46b4ea8: Pulling fs layer
b8ef58969775: Pulling fs layer
266f60c15eeb: Pulling fs layer
702596540c25: Pulling fs layer
a6d7da0ad7b6: Pulling fs layer
266f60c15eeb: Waiting
702596540c25: Waiting
a960b46b4ea8: Waiting
a6d7da0ad7b6: Waiting
b8ef58969775: Waiting
52c6641357c0: Waiting
371e3eac71b2: Verifying Checksum
371e3eac71b2: Download complete
0efa87b6cc73: Verifying Checksum
0efa87b6cc73: Download complete
52c6641357c0: Verifying Checksum
52c6641357c0: Download complete
b8ef58969775: Verifying Checksum
b8ef58969775: Download complete
0aca3696fac2: Verifying Checksum
0aca3696fac2: Download complete
266f60c15eeb: Download complete
a960b46b4ea8: Verifying Checksum
a960b46b4ea8: Download complete
a6d7da0ad7b6: Verifying Checksum
a6d7da0ad7b6: Download complete
702596540c25: Verifying Checksum
702596540c25: Download complete
0aca3696fac2: Pull complete
371e3eac71b2: Pull complete
0efa87b6cc73: Pull complete
52c6641357c0: Pull complete
a960b46b4ea8: Pull complete
b8ef58969775: Pull complete
266f60c15eeb: Pull complete
702596540c25: Pull complete
a6d7da0ad7b6: Pull complete
Digest: sha256:4fef77bcf58e92656c2d4734c1e0e5bb9140eb3aa730a05d83ae51dc33cb0463
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-stylelint:b1017
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2025-03-17T17:09:57.311895 #1]  INFO -- : Skipping file ./residents/management/commands/make_fake_residencies.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    self.stdout.write(f"Created {options['num']} fake residencies.")
                                                                  ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.324326 #1]  INFO -- : Skipping file ./residents/management/commands/make_fake_residents.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    self.stdout.write(f"Created {options['num']} fake residents.")
                                                                ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.343204 #1]  INFO -- : Skipping file residents/charts.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    activities: models.QuerySet[ResidentActivity],
              ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.365956 #1]  INFO -- : Skipping file residents/models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    return f"{self.first_name} {self.last_initial}"
                                                  ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.377697 #1]  INFO -- : Skipping file activities/views.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 72
    error_message = f"Resident ID {resident_id} does not exist."
                                                               ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.426112 #1]  INFO -- : Skipping file ./homes/management/commands/make_fake_homes.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    self.stdout.write(f"Created {options['num']} fake homes.")
                                                            ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.426834 #1]  INFO -- : Skipping file homes/views.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 54
    def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
                                       ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.437890 #1]  INFO -- : Skipping file homes/charts.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def _apply_activity_type_locale(df: pd.DataFrame) -> pd.DataFrame:
                                      ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.451052 #1]  INFO -- : Skipping file homes/models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 24
    def _generate_date_range(days_ago: int) -> list[datetime.date]:
                                     ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.462974 #1]  INFO -- : Skipping file homes/queries.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 115
    def home_monthly_activity_hours_by_type(home) -> pd.DataFrame:
                                                  ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.474605 #1]  INFO -- : Skipping file manage.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    ) from exc
         ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.498754 #1]  INFO -- : Skipping file work/views.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 245
    def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
                                       ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.517943 #1]  INFO -- : Skipping file work/models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    def __str__(self) -> str:
                      ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.557061 #1]  INFO -- : Skipping file metrics/forms.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 19
    residencies: QuerySet[Residency],
               ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.580217 #1]  INFO -- : Skipping file caregivers/models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def __str__(self) -> str:
                      ^
SyntaxError: invalid syntax


I, [2025-03-17T17:09:57.603400 #1]  INFO -- : Skipping file accounts/models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /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/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 15
    def get_full_name(self) -> str:
                            ^
SyntaxError: invalid syntax
7
bandit
bandit engine documentation
View output
[main]	INFO	profile include tests: None
[main]	INFO	profile exclude tests: None
[main]	INFO	cli include tests: None
[main]	INFO	cli exclude tests: None
54 [0.. [node_visitor]	INFO	Unable to find qualified name for module: manage.py
50.. ]
8
black
black engine documentation
9
flake8
flake8 engine documentation
SkippedView output
No engine named flake8 found
10
isort
isort engine documentation
SkippedView output
Channel stable not found for isort, available channels: ["beta"]
11
mccabe
mccabe engine documentation
SkippedView output
No engine named mccabe found
12
mypy
mypy engine documentation
SkippedView output
No engine named mypy found
13
radon
radon engine documentation
View output
Running radon3...
14
markdownlint
markdownlint engine documentation
View output
/usr/local/bundle/gems/posix-spawn-0.3.11/lib/posix/spawn.rb:467: warning: constant ::Fixnum is deprecated
15
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/locale/fi/LC_MESSAGES/django.mo' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 92 files indexed
ERROR: Unable to parse file: /code/residents/models.py
ERROR: Parse error at line 61 column 22:

   50: property
   51:     def activity_level(self):
   52:         """Return a string indicating whether the resident is inactive, low,
   53:         medium, or high activity.
   54: 
   55:         Based on the count of activities in the past seven days:
   56:         - danger: 0-1
   57:         - warning: 2-4
   58:         - success: 5+
   59:         """
   60:         one_week_ago = timezone.now() - timezone.timedelta(days=7)
  -->          activity_count: int = self.resident_activities.filter(
   62:             activity_date__gte=one_week_ago,
   63:         ).count()
   64: 
   65:         color_class = None
   66:         text = None
   67: 
   68:         if self.

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.500s
INFO: Final Memory: 6M/292M
INFO: ------------------------------------------------------------------------
16
stylelint
stylelint engine documentation
View output
•• Timing: .engineConfig: 0.011s
Error: No configuration provided. Make sure you have added a config file with rules enabled.
See our documentation at https://docs.codeclimate.com/docs/stylelint for more information.

Congratulations

Your first build completed successfully!

See the Results