Skip to content

Commit d8d82ef

Browse files
author
Bryan Sieber
committed
C0114 from pylint--enabled
1 parent 3bc1b94 commit d8d82ef

File tree

16 files changed

+56
-4
lines changed

16 files changed

+56
-4
lines changed

infra/gunicorn_conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# From: https://github.com/tiangolo/uvicorn-gunicorn-docker/blob/2daa3e3873c837d5781feb4ff6a40a89f791f81b/docker-images/gunicorn_conf.py
1+
"""
2+
Conf file extracted from:
3+
https://github.com/tiangolo/uvicorn-gunicorn-docker/blob/2daa3e3873c837d5781feb4ff6a40a89f791f81b/docker-images/gunicorn_conf.py
4+
"""
25
# pylint: disable=invalid-name
36

47
import multiprocessing

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ testpaths = [
4545
[tool.pylint]
4646
[tool.pylint.'MESSAGES CONTROL']
4747
disable = [
48-
"C0114", #missing-module-docstring
48+
# "C0114", #missing-module-docstring
4949
"C0115", #missing-class-docstring
5050
"C0116", #missing-function-docstring
5151
"C0301", #line-too-long

src/app/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Core FastAPI app (setup, middleware)
3+
"""
14
import logging
25
import time
36
from datetime import datetime

src/app/environment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Module dedicated to interacting with the environment (variables, version.json)
3+
"""
14
import json
25
import os
36
from functools import lru_cache

src/app/log.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Dedicated module for logging configuration and setup
3+
"""
14
import logging
25
import logging.config
36
import sys

src/app/monitor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Router dedicated to Dockerflow APIs
3+
"""
14
from typing import Dict
25

36
from fastapi import APIRouter, Depends, Request

src/jbi/configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Parsing and validating the YAML configuration occurs within this module
3+
"""
14
import importlib
25
import logging
36
from inspect import signature

src/jbi/router.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Router dedicated to Jira Bugzilla Integration APIs
3+
"""
14
import logging
25
from typing import Optional
36

src/jbi/services.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Services and functions that can be used to create custom actions
3+
"""
14
import logging
25

36
import bugzilla as rh_bugzilla # type: ignore

src/jbi/whiteboard_actions/default.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# Default actions below
2-
# from src.jbi import services
1+
"""
2+
Default actions is listed below.
3+
`init` is required; and requires at minimum the
4+
`whiteboard_tag` and `jira_project_key`.
5+
6+
`init` should return a __call__able
7+
"""
38

49

510
def init(whiteboard_tag, jira_project_key, **kwargs):

0 commit comments

Comments
 (0)