Skip to content

Commit

Permalink
Add explicit coding (utf-8)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Aug 20, 2024
1 parent 65b4190 commit ae97ade
Show file tree
Hide file tree
Showing 26 changed files with 31 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing to Transcriptase
# Contributing to Testrail API Reporter
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

- Reporting a bug
Expand Down Expand Up @@ -34,7 +34,7 @@ We use GitHub issues to track public bugs. Report a bug by [opening a new issue]
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can. [My stackoverflow question](http://stackoverflow.com/q/12488905/180626) includes sample code that *anyone* with a base R setup can run to reproduce what I was seeing
- Give sample code if you can. [Stackoverflow question](http://stackoverflow.com/q/12488905/180626) includes sample code that *anyone* with a base R setup can run to reproduce what I was seeing
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Ilya Vereshchagin
Copyright (c) 2024 Ilya Vereshchagin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" This module is used to import all the classes and functions from the package """

# Engines
Expand Down
3 changes: 2 additions & 1 deletion testrail_api_reporter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""testrail_api_reporter package"""
# -*- coding: utf-8 -*-
""" testrail_api_reporter package """

# Engines
from .engines.at_coverage_reporter import ATCoverageReporter
Expand Down
3 changes: 2 additions & 1 deletion testrail_api_reporter/engines/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Engines package"""
# -*- coding: utf-8 -*-
""" Engines for testrail_api_reporter package """

from .at_coverage_reporter import ATCoverageReporter
from .case_backup import TCBackup
Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/engines/at_coverage_reporter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Engine to generate obtain TestRail data and prepare reports """

from requests.exceptions import ReadTimeout
Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/engines/case_backup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" TestRails backup module """

import os
Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/engines/plotly_reporter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Confluence sender module """

import plotly
Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/engines/results_reporter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Module for reporting results to TestRails from xml report results, obtained by pytest """

import datetime
Expand Down
3 changes: 2 additions & 1 deletion testrail_api_reporter/publishers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Publishers package"""
# -*- coding: utf-8 -*-
""" Publishers for testrail_api_reporter package """

from .confluence_sender import ConfluenceSender
from .email_sender import EmailSender
Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/publishers/confluence_sender.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Confluence sender module """

from atlassian import Confluence
Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/publishers/email_sender.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Email sender module """

import base64
Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/publishers/gdrive_uploader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Google Drive uploader module """

import json
Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/publishers/slack_sender.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Slack sender module """

import json
Expand Down
3 changes: 2 additions & 1 deletion testrail_api_reporter/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utils for testrail_api_reporter package"""
# -*- coding: utf-8 -*-
""" Utils for testrail_api_reporter package """

from .logger_config import setup_logger
from .reporter_utils import upload_image, delete_file, zip_file
1 change: 1 addition & 0 deletions testrail_api_reporter/utils/case_stat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" CaseStat class """


Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/utils/csv_parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" CSV parser for TestRail API Reporter """

import csv
Expand Down
4 changes: 1 addition & 3 deletions testrail_api_reporter/utils/logger_config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
"""
Logger configuration
"""
"""Logger configuration"""

import logging
import sys
Expand Down
1 change: 1 addition & 0 deletions testrail_api_reporter/utils/reporter_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" This module contains service functions for reporter """

import os
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Conftest for testsuite"""

from os import path, remove
Expand Down
1 change: 1 addition & 0 deletions tests/utils/test_reporter_utils_cqptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Tests for the reporter_utils module, function 'check_captions_and_files'"""

from logging import getLogger
Expand Down
1 change: 1 addition & 0 deletions tests/utils/test_reporter_utils_delete_file.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Tests for the reporter_utils module, function 'delete_file'"""

from os import path
Expand Down
1 change: 1 addition & 0 deletions tests/utils/test_reporter_utils_format_error.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Tests for the reporter_utils module, function 'format_error'"""

from testrail_api_reporter.utils.reporter_utils import format_error # pylint: disable=import-error,no-name-in-module
Expand Down
1 change: 1 addition & 0 deletions tests/utils/test_reporter_utils_init_get_cases.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Tests for the reporter_utils module, function 'init_get_cases_process'"""

from testrail_api_reporter.utils.reporter_utils import ( # pylint: disable=import-error,no-name-in-module
Expand Down
1 change: 1 addition & 0 deletions tests/utils/test_reporter_utils_upload_image.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Tests for the reporter_utils module, function 'upload_image'"""

from os import getcwd, getenv
Expand Down
1 change: 1 addition & 0 deletions tests/utils/test_reporter_utils_zip_file.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Tests for the reporter_utils module, function 'zip_file'"""

import os
Expand Down

0 comments on commit ae97ade

Please sign in to comment.