Skip to content

Commit

Permalink
parent 644de1d
Browse files Browse the repository at this point in the history
author Hirotaka Wakabayashi <hiwkby@yahoo.com> 1671417235 +0900
committer Hirotaka Wakabayashi <hiwkby@yahoo.com> 1671437067 +0900

Updates setup-python
  • Loading branch information
hiwakaba committed Dec 21, 2022
1 parent 644de1d commit 5d5c079
Show file tree
Hide file tree
Showing 13 changed files with 364 additions and 226 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7']
python-version: ['3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8']
python-version: ['3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ lint:
pipenv run flake8 --version
pipenv run flake8 k2hr3_osnl tests
pipenv run mypy k2hr3_osnl tests
pipenv run pylint k2hr3_osnl tests --py3k -r n
pipenv run pylint k2hr3_osnl tests -r n
pipenv run python3 setup.py checkdocs

clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
Expand Down
30 changes: 15 additions & 15 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
coverage = {version = ">=5.3,<5.4"}
xmlrunner = {version = ">=1.7.7,<1.7.8"}
flake8 = {version = ">=3.8.4,<3.8.5"}
flake8-docstrings = {version = ">=1.5.0,<1.5.1"}
pep8-naming = {version = ">=0.11.1,<0.11.2"}
pycodestyle = {version = ">=2.6.0,<2.6.1"}
mccabe = {version = ">=0.6.1,<0.6.2"}
sphinx = {version = ">=3.3.1,<3.3.2"}
twine = {version = ">=3.2.0,<3.2.1"}
pylint = {version = ">=2.7.2,<2.7.3"}
astroid = {version = ">=2.5.1,<2.5.2"}
typed-ast = {version = ">=1.4.1,<1.4.2"}
mypy = {version = ">=0.790,<0.791"}
coverage = "*"
xmlrunner = "*"
flake8 = "*"
flake8-docstrings = "*"
pep8-naming = "*"
pycodestyle = "*"
mccabe = "*"
sphinx = "*"
twine = "*"
pylint = "*"
astroid = "*"
typed-ast = "*"
mypy = "*"
importlib-metadata = {version = ">=3.6"}
"collective.checkdocs" = "*"
argh = {version = ">=0.26.2,<0.26.3"}
watchdog = {version = ">=0.10.4,<0.10.5"}
argh = "*"
watchdog = "*"

[packages]
oslo-config = "*"
Expand Down
4 changes: 2 additions & 2 deletions k2hr3_osnl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
import time
from typing import List, Set, Dict, Tuple, Optional # noqa: pylint: disable=unused-import

import oslo_config
import oslo_messaging
import oslo_config # type: ignore
import oslo_messaging # type: ignore

from k2hr3_osnl.cfg import K2hr3Conf
from k2hr3_osnl.exceptions import K2hr3Error, K2hr3ConfError, K2hr3NotificationEndpointError
Expand Down
2 changes: 1 addition & 1 deletion k2hr3_osnl/cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from pathlib import Path
from typing import List, Set, Dict, Tuple, Optional # noqa: pylint: disable=unused-import

from oslo_config import cfg
from oslo_config import cfg # type: ignore
from k2hr3_osnl.exceptions import K2hr3ConfError

LOG = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion k2hr3_osnl/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import traceback
from typing import List, Set, Dict, Tuple, Optional, Any # noqa: pylint: disable=unused-import

from oslo_messaging import NotificationFilter, NotificationResult
from oslo_messaging import NotificationFilter, NotificationResult # type: ignore

from k2hr3_osnl.cfg import K2hr3Conf
from k2hr3_osnl.useragent import _K2hr3UserAgent
Expand Down
6 changes: 3 additions & 3 deletions k2hr3_osnl/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ class K2hr3Error(Exception):
class K2hr3ConfError(K2hr3Error):
"""Raised when failed to instantiate a k2hr3Conf class."""

def __init__(self, msg: str = None):
def __init__(self, msg: str = ""):
"""Initializes members."""
self.msg = msg


class K2hr3NotificationEndpointError(K2hr3Error):
"""Raised when failed to instantiate a K2hr3NotificationEndpoint class."""

def __init__(self, msg: str = None):
def __init__(self, msg: str = ""):
"""Initializes members."""
self.msg = msg


class _K2hr3UserAgentError(K2hr3Error):
"""Raised when failed to send request to K2hr3API in K2hr3Agent class."""

def __init__(self, msg: str = None):
def __init__(self, msg: str = ""):
"""Initializes members."""
self.msg = msg

Expand Down
2 changes: 1 addition & 1 deletion k2hr3_osnl/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
import sys
import unittest

import xmlrunner
import xmlrunner # type: ignore

here = os.path.dirname(__file__)
src_dir = os.path.join(here, '../..')
Expand Down

0 comments on commit 5d5c079

Please sign in to comment.