-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue: 3799995: Integrate PEP8/ pylint into TFS CI process (#210)
- Loading branch information
1 parent
8e2edc3
commit b2b889c
Showing
15 changed files
with
255 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: TFS Plugin CI Workflow | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'plugins/fluentd_telemetry_plugin/**' | ||
jobs: | ||
pylint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@main | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@main | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r plugins/fluentd_telemetry_plugin/requirements.txt | ||
pip install pylint | ||
- name: Run PyLint | ||
run: pylint --rcfile=plugins/fluentd_telemetry_plugin/.pylintrc plugins/fluentd_telemetry_plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[MASTER] | ||
init-hook="import os, sys; sys.path.append(os.path.join(os.getcwd(), 'plugins', 'fluentd_telemetry_plugin', 'src')); sys.path.append(os.path.join(os.getcwd(), 'utils'))" | ||
|
||
[MAIN] | ||
max-public-methods=100 | ||
|
||
[DESIGN] | ||
max-attributes=10 | ||
|
||
[MESSAGES CONTROL] | ||
disable=missing-module-docstring,missing-function-docstring,fixme | ||
|
||
[FORMAT] | ||
max-line-length=140 | ||
|
||
[BASIC] | ||
min-public-methods=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ twisted | |
tzlocal<3.0 | ||
jsonschema | ||
prometheus_client | ||
msgpack | ||
msgpack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
@copyright: | ||
Copyright (C) Mellanox Technologies Ltd. 2014-2020. ALL RIGHTS RESERVED. | ||
This software product is a proprietary product of Mellanox Technologies | ||
Ltd. (the "Company") and all right, title, and interest in and to the | ||
software product, including all associated intellectual property rights, | ||
are and shall remain exclusively with the Company. | ||
This software product is governed by the End User License Agreement | ||
provided with the software product. | ||
@author: Anan Al-Aghbar | ||
@date: May 9, 2024 | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
class InvalidConfRequest(Exception): | ||
"""InvalidConfRequest Exception class""" | ||
|
||
def __init__(self, message): | ||
Exception.__init__(self,message) | ||
Exception.__init__(self, message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.