MetaPhase-Consulting/State-TalentMAP-API

View on GitHub
Update pr-review.yml #5041
elizabeth-jimenez authored 41d39828
complete00:00:19
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
WARNING: engine duplication: 'exclude_paths' has been deprecated, please use 'exclude_patterns' instead
WARNING: 'engines' has been deprecated, please use 'plugins' instead
WARNING: 'exclude_paths' has been deprecated, please use 'exclude_patterns' 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
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-04-30T15:03:03.990251 #1]  INFO -- : Skipping file talentmap_api/stats/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 57
    logger.info(f"User {self.request.user.id}:{self.request.user} is logging in")
                                                                               ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.109915 #1]  INFO -- : Skipping file talentmap_api/log_viewer/services.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 23
    file_name = f"{log_dir}{log_name}"
                                     ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.161977 #1]  INFO -- : Skipping file ./talentmap_api/cdo/services/available_bidders.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 69
    stats_key[key] = deepcopy(none_listed) if key == None else {'name': f"{skill[0]['description']}", 'value': 0}
                                                                                                   ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.308892 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/employee.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 32
    url = f"{API_ROOT}/userInfo?ad_id={ad_id}"
                                             ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.367567 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/admin_panel.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 22
    url = f"{API_ROOT}/v1/admin_panels/"
                                       ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.378651 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/bid_season.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
    url = f"{API_ROOT}/v1/fsbid/bidSeasons?future_vacancy_ind={future_vacancy_ind}"
                                                                                  ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.382770 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/assignment_history.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 64
    "skill": f"{pos.get('posskilldesc') or None} ({pos.get('posskillcode')})",
                                                                            ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.390067 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/remark.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 65
    "uri": f"v1/remarks/{rmrk_seq_num}/inserts",
                                              ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.394427 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/projected_vacancies.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 181
    "skill": f"{pv.get('pos_skill_desc', None)} ({pv.get('pos_skill_code')})",
                                                                            ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.401254 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/bureau.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 145
    filename = f"position_{pos_num}_bidders"
                                           ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.405662 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/agenda_employees.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 94
    response['Content-Disposition'] = f"attachment; filename=agenda_employees_{datetime.now().strftime('%Y_%m_%d_%H%M%S')}.csv"
                                                                                                                              ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.412633 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/common.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 57
    previous_url = f"{host}{base_url}{prev_query.urlencode()}" if host and page > 1 else None
                                                             ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.417911 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/bid.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 34
    url = f"{API_ROOT}/v1/bids/?perdet_seq_num={employee_id}"
                                                            ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.423684 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/job_categories.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 33
    logger.error(f"Fsbid call for Job Categories failed.")
                                                        ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.431688 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/agenda.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 92
    employeeQuery = QueryDict(f"limit=1&page=1&perdet={query.get('perdet', None)}")
                                                                                 ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.440694 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/panel.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 269
    logger.info(f"Invalid date {panel_date_start} or {panel_date_end} could not be parsed.")
                                                                                          ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.443530 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/publishable_positions.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 44
    uri = f"{PUBLISHABLE_POSITIONS_ROOT}/capsule"
                                                ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.456250 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/org_stats.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 59
    'bureau': f'({x.get("BUREAU_CODE")}) {x.get("BUR_SHORT_DESC")}',
                                                                  ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.471160 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/bidding_tool.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 331
    **base_action_request(request),
     ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.481460 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/client.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 29
    url = f"{SECREF_ROOT}/user?request_params.perdet_seq_num={perdet_seq_num}"
                                                                             ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.482368 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/persons.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 55
    name = firstN +' '+ lastN + f"{', '+suffix if hasSuffix else ''}"
                                                                    ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.492834 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/positions.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 58
    rep1 = f"{l1} {r1}/{s1}"
                           ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.493517 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/classifications.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
    uri = f"bidders?perdet_seq_num={perdet_seq_num}"
                                                   ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.510941 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/available_positions.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 215
    a = list(filter(lambda i: float(id) != i["id"], get_available_positions({**criteria, **{"limit": SIMILAR_LIMIT + 1}}, jwt_token, host)["results"]))
                                                                              ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.511537 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/admin_projected_vacancies.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 322
    'PX_LANGOS_I': f'<ROWSET><ROW><POS_SEQ_NUM>{request.get("position_seq_num")}</POS_SEQ_NUM><LOT_SEQ_NUM>{request.get("language_offset_summer") or ""}</LOT_SEQ_NUM></ROW></ROWSET>',
                                                                                                                                                                                     ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.572865 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/cdo.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
    uri = f"Agents?ad_id={ad_id}&request_params.rl_cd=CDO&request_params.rl_cd=CDO3"
                                                                                   ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.586054 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/assignment_cycles.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 378
    logger.error(f"Fsbid call for Cycle Positions filters failed.")
                                                                 ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.606181 #1]  INFO -- : Skipping file ./talentmap_api/fsbid/services/post_access.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 32
    logger.error(f"Fsbid call for Search Post Access filters failed.")
                                                                    ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.638955 #1]  INFO -- : Skipping file ./talentmap_api/bureau/services/available_bidders.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 23
    data = client_services.get_available_bidders(request.META['HTTP_JWT'], False, request.query_params, f"{request.scheme}://{request.get_host()}")
                                                                                                                                                 ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.767443 #1]  INFO -- : Skipping file talentmap_api/common/common_helpers.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 132
    logger.error(f"Fsbid call for {objStr} failed with no return data.")
                                                                      ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.773579 #1]  INFO -- : Skipping file talentmap_api/common/mixins.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 25
    context = {**context, "override_fields": self.request.query_params.get(include_param_name).split(',')}
                ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.793517 #1]  INFO -- : Skipping file talentmap_api/common/filters.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 135
    for q in [Q(**{f"{x}__icontains": value}) for x in fields]:
                                   ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.816975 #1]  INFO -- : Skipping file ./talentmap_api/common/tokens/urls.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 7
    url(r'^$', views.TokenView.as_view({**get_retrieve}), name='common.Token-retrieve'),
                                         ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.856087 #1]  INFO -- : Skipping file talentmap_api/common/xml_helpers.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 67
    logging.getLogger(__name__).warn(f"Looking for collision on {type(instance).__name__}, field {self.collision_field}, value {getattr(instance, self.collision_field)}; found {collisions.count()}. Skipping item.")
                                                                                                                                                                                                                    ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.868673 #1]  INFO -- : Skipping file talentmap_api/messaging/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 85
    logger.error(f"{type(e).__name__} at line {e.__traceback__.tb_lineno} of {__file__}: {e}")
                                                                                            ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:04.869786 #1]  INFO -- : Skipping file talentmap_api/common/serializers.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 120
    raise serializers.ValidationError(f"The following fields are not writable: {', '.join(invalid_fields)}")
                                                                                                          ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:05.011004 #1]  INFO -- : Skipping file talentmap_api/wsgi.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 38
    print(f'TalentMAP: wsgi.py unable to load environment, does {file} exist?')
                                                                             ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:05.054297 #1]  INFO -- : Skipping file talentmap_api/user_profile/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 22
    return f"{self.user.first_name} {self.user.last_name}"
                                                         ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:05.065055 #1]  INFO -- : Skipping file talentmap_api/user_profile/serializers.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 107
    aps = get_available_positions(QueryDict(f"id={pos_nums}"), request.META['HTTP_JWT'])["results"]
                                                           ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:05.080676 #1]  INFO -- : Skipping file talentmap_api/position/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 35
    return f"{self.code}"
                        ^
SyntaxError: invalid syntax


I, [2024-04-30T15:03:05.169810 #1]  INFO -- : Skipping file talentmap_api/settings.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 40
    val = os.environ.get(f'{env_name}{variable}', None)
                                               ^
SyntaxError: invalid syntax
7
pep8
pep8 engine documentation
View output
.github/ talentmap_api/stats/views.py talentmap_api/stats/apps.py talentmap_api/stats/filters.py talentmap_api/stats/__init__.py talentmap_api/stats/urls/ talentmap_api/stats/tests.py talentmap_api/stats/models.py talentmap_api/stats/serializers.py talentmap_api/conftest.py talentmap_api/projected_tandem/views/ talentmap_api/projected_tandem/apps.py talentmap_api/projected_tandem/__init__.py talentmap_api/projected_tandem/urls/ talentmap_api/projected_tandem/models.py talentmap_api/log_viewer/services.py talentmap_api/log_viewer/views/ talentmap_api/log_viewer/apps.py talentmap_api/log_viewer/__init__.py talentmap_api/log_viewer/urls/ talentmap_api/log_viewer/serializers/ talentmap_api/log_viewer/models.py talentmap_api/cdo/views/ talentmap_api/cdo/apps.py talentmap_api/cdo/__init__.py talentmap_api/cdo/urls/ talentmap_api/cdo/services/ talentmap_api/cdo/models.py talentmap_api/cdo/serializers.py talentmap_api/bidding/views/ talentmap_api/bidding/apps.py talentmap_api/bidding/filters.py talentmap_api/bidding/__init__.py talentmap_api/bidding/urls/ talentmap_api/bidding/services/ talentmap_api/bidding/serializers/ talentmap_api/bidding/models.py talentmap_api/bidding/serializers.py talentmap_api/fsbid/requests.py talentmap_api/fsbid/views/ talentmap_api/fsbid/apps.py talentmap_api/fsbid/filters.py talentmap_api/fsbid/__init__.py talentmap_api/fsbid/urls/ talentmap_api/fsbid/services/ talentmap_api/fsbid/tests.py talentmap_api/fsbid/models.py talentmap_api/bureau/ talentmap_api/permission/views/ talentmap_api/permission/apps.py talentmap_api/permission/filters.py talentmap_api/permission/__init__.py talentmap_api/permission/urls/ talentmap_api/permission/serializers.py talentmap_api/organization/management/__init__.py talentmap_api/organization/views.py talentmap_api/organization/apps.py talentmap_api/organization/filters.py talentmap_api/organization/__init__.py talentmap_api/organization/models.py talentmap_api/organization/serializers.py talentmap_api/feature_flags/views/ talentmap_api/feature_flags/__init__.py talentmap_api/feature_flags/urls/ talentmap_api/feature_flags/serializers/ talentmap_api/feature_flags/models.py talentmap_api/common/permissions.py talentmap_api/common/management/__init__.py talentmap_api/common/common_helpers.py talentmap_api/common/mixins.py talentmap_api/common/decorators.py talentmap_api/common/pagination.py talentmap_api/common/filters.py talentmap_api/common/__init__.py talentmap_api/common/middleware.py talentmap_api/common/tokens/ talentmap_api/common/renderers.py talentmap_api/common/urls.py talentmap_api/common/models.py talentmap_api/common/xml_helpers.py talentmap_api/common/serializers.py talentmap_api/messaging/views.py talentmap_api/messaging/apps.py talentmap_api/messaging/filters.py talentmap_api/messaging/__init__.py talentmap_api/messaging/urls/ talentmap_api/messaging/models.py talentmap_api/messaging/serializers.py talentmap_api/glossary/views/ talentmap_api/glossary/apps.py talentmap_api/glossary/filters.py talentmap_api/glossary/__init__.py talentmap_api/glossary/urls/ talentmap_api/glossary/models.py talentmap_api/glossary/serializers.py talentmap_api/__init__.py talentmap_api/available_positions/views/ talentmap_api/available_positions/apps.py talentmap_api/available_positions/filters.py talentmap_api/available_positions/__init__.py talentmap_api/available_positions/urls/ talentmap_api/available_positions/serializers/ talentmap_api/available_positions/models.py talentmap_api/wsgi.py talentmap_api/user_profile/management/__init__.py talentmap_api/user_profile/views/ talentmap_api/user_profile/apps.py talentmap_api/user_profile/filters.py talentmap_api/user_profile/__init__.py talentmap_api/user_profile/urls/ talentmap_api/user_profile/models.py talentmap_api/user_profile/serializers.py talentmap_api/position/apps.py talentmap_api/position/__init__.py talentmap_api/position/models.py talentmap_api/data/ talentmap_api/urls.py talentmap_api/available_tandem/views/ talentmap_api/available_tandem/apps.py talentmap_api/available_tandem/__init__.py talentmap_api/available_tandem/urls/ talentmap_api/available_tandem/models.py talentmap_api/administration/views/ talentmap_api/administration/apps.py talentmap_api/administration/__init__.py talentmap_api/administration/urls/ talentmap_api/administration/serializers/ talentmap_api/administration/models.py talentmap_api/projected_vacancies/views/ talentmap_api/projected_vacancies/apps.py talentmap_api/projected_vacancies/__init__.py talentmap_api/projected_vacancies/urls/ talentmap_api/projected_vacancies/models.py talentmap_api/settings.py show_logo.py manage.py .circleci/ locustfile.py