diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0844bdbf..0b7f57a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,14 +51,20 @@ jobs: - name: run them analyzers run: | + printf "\n\t running black:\n" black --line-length=100 --check . || { printf "\\n\\t please use black to format your code."; exit 77; } + printf "\n\t running flake8:\n" flake8 . + printf "\n\t running pylint:\n" pylint --enable=E --disable=W,R,C naz/ tests/ cli/ documentation/ examples/ benchmarks/ + printf "\n\t running bandit:\n" bandit -r --exclude .venv -ll . # to find types, use reveal_type eg: reveal_type(asyncio.get_event_loop()) # see: http://mypy.readthedocs.io/en/latest/common_issues.html#displaying-the-type-of-an-expression - mypy --show-column-numbers --ignore-missing-imports -p cli -p naz #--strict - pytype --verbosity 0 --python-version 3.7 --protocols --strict-import --keep-going naz/ cli/ + printf "\n\t running mypy:\n" + mypy --show-column-numbers --ignore-missing-imports cli/ naz/ tests/ examples/ benchmarks/ #--strict + printf "\n\t running pytype:\n" + pytype --verbosity 0 --python-version 3.7 --protocols --strict-import --keep-going naz/ cli/ examples/ benchmarks/ env: PYTHONASYNCIODEBUG: '1' NAZ_DEBUG: 'NAZ_DEBUG' diff --git a/CHANGELOG.md b/CHANGELOG.md index 29f6aa01..b116057b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ most recent version is listed first. +## **version:** v0.7.5 +- Rename `naz.nazcodec.BaseNazCodec` to `naz.codec.BaseCodec`: https://github.com/komuw/naz/pull/191 +- Rename `naz.Client.codec_class` to `naz.Client.codec`: https://github.com/komuw/naz/pull/191 +- Add ability for `naz.log.SimpleLogger` to render logs as a python dictionary: https://github.com/komuw/naz/pull/191 + + ## **version:** v0.7.4 - Fix a bug that prevented `enquire_link` and `deliver_sm` from been sent: https://github.com/komuw/naz/pull/179 - Enforce `naz` message protocol in code: https://github.com/komuw/naz/pull/179 diff --git a/Makefile b/Makefile index 44dc6dde..be280414 100644 --- a/Makefile +++ b/Makefile @@ -38,8 +38,8 @@ test: @printf "\n run flake8::\n" && flake8 . @printf "\n run pylint::\n" && pylint --enable=E --disable=W,R,C naz/ tests/ cli/ documentation/ examples/ benchmarks/ @printf "\n run bandit::\n" && bandit -r --exclude .venv -ll . - @printf "\n run mypy::\n" && mypy --show-column-numbers --ignore-missing-imports -p cli -p naz - @printf "\n run pytype::\n" && pytype --verbosity 0 --python-version 3.7 --protocols --strict-import --keep-going naz/ cli/ + @printf "\n run mypy::\n" && mypy --show-column-numbers --ignore-missing-imports cli/ naz/ tests/ examples/ benchmarks/ + @printf "\n run pytype::\n" && pytype --verbosity 0 --python-version 3.7 --protocols --strict-import --keep-going naz/ cli/ examples/ benchmarks/ # note `.nojekyll` file is important inside `docs/` folder # without it, css styling for docs in https://komuw.github.io/naz/ is broken diff --git a/benchmarks/Dockerfile b/benchmarks/Dockerfile index b35ea7fa..f1de3a0c 100644 --- a/benchmarks/Dockerfile +++ b/benchmarks/Dockerfile @@ -3,7 +3,7 @@ FROM python:3.7 ARG NAZ_BRANCH=master WORKDIR /usr/src/app -COPY ./ /usr/src/app +COPY . /usr/src/app ENV PYTHONPATH="/usr/src/app" diff --git a/benchmarks/smpp_n_broker_servers.py b/benchmarks/smpp_n_broker_servers.py index 019449e9..c6927508 100644 --- a/benchmarks/smpp_n_broker_servers.py +++ b/benchmarks/smpp_n_broker_servers.py @@ -40,11 +40,11 @@ def __init__( log_metadata={"container_name": self.container_name, "chaos": self.chaos}, ) - self.container_max_run_duration: float = 16.00 # mins - self.container_min_run_duration: float = 13.00 # mins + self.container_max_run_duration: int = 16 # mins + self.container_min_run_duration: int = 13 # mins - self.container_max_stop_duration: float = 3.00 # mins - self.container_min_stop_duration: float = 1.00 # mins + self.container_max_stop_duration: int = 3 # mins + self.container_min_stop_duration: int = 1 # mins def start(self): self.stop() diff --git a/docs/_modules/index.html b/docs/_modules/index.html index 1cdcffa0..da415fc1 100644 --- a/docs/_modules/index.html +++ b/docs/_modules/index.html @@ -8,7 +8,7 @@ - Overview: module code — naz v0.7.4 documentation + Overview: module code — naz v0.7.5 documentation @@ -60,7 +60,7 @@
- v0.7.4 + v0.7.5
@@ -93,7 +93,7 @@
  • protocol
  • correlater
  • hooks
  • -
  • nazcodec
  • +
  • codec
  • broker
  • ratelimiter
  • sequence
  • @@ -163,10 +163,10 @@

    All modules for which code is available