GeriLife/caregiving

View on GitHub
Merge pull request #95 from GeriLife/django-debug-toolbar #197
Brylie Christopher Oxley authored 9f823690
complete00:00:20
Your first build completed successfully!

Congratulations

Your first build completed successfully!

See the Results

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
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, [2024-09-03T12:07:46.514952 #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, [2024-09-03T12:07:46.526692 #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, [2024-09-03T12:07:46.546312 #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, [2024-09-03T12:07:46.572879 #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, [2024-09-03T12:07:46.584615 #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, [2024-09-03T12:07:46.635950 #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, [2024-09-03T12:07:46.639506 #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, [2024-09-03T12:07:46.653781 #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, [2024-09-03T12:07:46.667614 #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, [2024-09-03T12:07:46.678235 #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, [2024-09-03T12:07:46.698805 #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 17
    ) from exc
         ^
SyntaxError: invalid syntax


I, [2024-09-03T12:07:46.723351 #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, [2024-09-03T12:07:46.735493 #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, [2024-09-03T12:07:46.771422 #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, [2024-09-03T12:07:46.794426 #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, [2024-09-03T12:07:46.823098 #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.638s
INFO: Final Memory: 6M/292M
INFO: ------------------------------------------------------------------------
16
stylelint
stylelint engine documentation
View output
•• Timing: .engineConfig: 0.01s
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.