Skip to content

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Aug 25, 2023
1 parent 6a1b103 commit 9c02f48
Show file tree
Hide file tree
Showing 21 changed files with 1,580 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .flake8
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
87 changes: 87 additions & 0 deletions .github/workflows/linters.yml
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
5 changes: 5 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[FORMAT]
max-line-length=120

[MESSAGES CONTROL]
disable=E1101,R0913
18 changes: 18 additions & 0 deletions CHANGELOG.md
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


12 changes: 12 additions & 0 deletions __init__.py
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
12 changes: 12 additions & 0 deletions __main__.py
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
3 changes: 3 additions & 0 deletions openai_engine/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- ADD STATISTICS tracking
- ADD Logger
- ADD Translator
Empty file added openai_engine/__init__.py
Empty file.
Loading

0 comments on commit 9c02f48

Please sign in to comment.