-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a1b103
commit 9c02f48
Showing
21 changed files
with
1,580 additions
and
0 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,7 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
inline-quotes = " | ||
multiline-quotes = """ | ||
docstring-quotes = """ | ||
avoid-escape = False | ||
ignore = Q000,WPS306,I001,I005,WPS229,D400,WPS317,S101,WPS507 |
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,87 @@ | ||
name: Linters | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'master' | ||
pull_request: | ||
branches-ignore: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11.4"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install pylint reorder-python-imports | ||
pip install mypy reorder-python-imports | ||
pip install wemake-python-styleguide reorder-python-imports | ||
pip install black reorder-python-imports | ||
- name: Analysing the code with pylint | ||
id: pylint | ||
continue-on-error: true | ||
run: | | ||
changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) HEAD | grep '\.py$') || true | ||
echo $changed_files | ||
if [ -n "$changed_files" ]; then | ||
PYTHONPATH=. pylint $changed_files | ||
else | ||
echo "No files changed, passing by" | ||
exit 0 | ||
fi | ||
- name: Analysing the code with mypy | ||
id: mypy | ||
continue-on-error: true | ||
run: | | ||
changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) HEAD | grep '\.py$') || true | ||
echo $changed_files | ||
if [ -n "$changed_files" ]; then | ||
PYTHONPATH=. mypy $changed_files | ||
else | ||
echo "No files changed, passing by" | ||
exit 0 | ||
fi | ||
- name: Check code with flake8 | ||
id: flake8 | ||
continue-on-error: true | ||
run: | | ||
changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) HEAD | grep '\.py$') || true | ||
echo $changed_files | ||
if [ -n "$changed_files" ]; then | ||
PYTHONPATH=. flake8 $changed_files | ||
else | ||
echo "No files changed, passing by" | ||
exit 0 | ||
fi | ||
- name: Check code with Black | ||
id: black | ||
continue-on-error: true | ||
run: | | ||
changed_files=$(git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) HEAD | grep '\.py$') || true | ||
echo $changed_files | ||
if [ -n "$changed_files" ]; then | ||
PYTHONPATH=. black --diff --check --color $changed_files | ||
else | ||
echo "No files changed, passing by" | ||
exit 0 | ||
fi | ||
- name: Check runner state | ||
run: | | ||
if [[ "${{ steps.pylint.outcome }}" == "failure" || "${{ steps.black.outcome }}" == "failure" ]] || "${{ steps.mypy.outcome }}" == "failure" ]]; then | ||
echo "Linters failed, refer to related sections for info" | ||
exit 1 | ||
fi |
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,5 @@ | ||
[FORMAT] | ||
max-line-length=120 | ||
|
||
[MESSAGES CONTROL] | ||
disable=E1101,R0913 |
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,18 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [0.1] - 2023-08-25 | ||
|
||
### Added | ||
- ChatGPT engine | ||
- DALL-E engine | ||
- audio_recorder | ||
- logger | ||
- transcriptors | ||
- tts | ||
|
||
|
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,12 @@ | ||
# Engines | ||
from .testrail_api_reporter.engines.at_coverage_reporter import ATCoverageReporter | ||
from .testrail_api_reporter.engines.results_reporter import TestRailResultsReporter | ||
from .testrail_api_reporter.engines.plotly_reporter import PlotlyReporter | ||
from .testrail_api_reporter.engines.case_backup import TCBackup | ||
# Publishers | ||
from .testrail_api_reporter.publishers.confluence_sender import ConfluenceSender | ||
from .testrail_api_reporter.publishers.email_sender import EmailSender | ||
from .testrail_api_reporter.publishers.slack_sender import SlackSender | ||
from .testrail_api_reporter.publishers.gdrive_uploader import GoogleDriveUploader | ||
# Utils | ||
from .testrail_api_reporter.utils.reporter_utils import upload_image, zip_file, delete_file |
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,12 @@ | ||
# Engines | ||
from testrail_api_reporter.engines.at_coverage_reporter import ATCoverageReporter | ||
from testrail_api_reporter.engines.results_reporter import TestRailResultsReporter | ||
from testrail_api_reporter.engines.plotly_reporter import PlotlyReporter | ||
from testrail_api_reporter.engines.case_backup import TCBackup | ||
# Publishers | ||
from testrail_api_reporter.publishers.confluence_sender import ConfluenceSender | ||
from testrail_api_reporter.publishers.email_sender import EmailSender | ||
from testrail_api_reporter.publishers.slack_sender import SlackSender | ||
from testrail_api_reporter.publishers.gdrive_uploader import GoogleDriveUploader | ||
# Utils | ||
from testrail_api_reporter.utils.reporter_utils import upload_image, zip_file, delete_file |
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,3 @@ | ||
- ADD STATISTICS tracking | ||
- ADD Logger | ||
- ADD Translator |
Empty file.
Oops, something went wrong.