Closed skupriienko closed 1 week ago
Jira
PEP 484 enabled:
mailjet_rest/client.py
mailjet_rest/utils/version.py
test.py
tests
py.typed
mypy
pyproject.toml
pyright
samples
ruff
upright
Type hints checks locally by commands:
mypy mailjet_rest/ --strict
mypy tests/ --strict
mypy test.py --strict
pyright .
pytype .
Tests:
test_client.py
test_version.py
Code conventions:
.editorconfig
.gitignore
Package management:
mailjet_rest = ["py.typed", "*.pyi"]
tool.setuptools.package-data
bandit
Other fixes:
__all__
mailjet_rest
sample
__init__.py
Links:
Jira
Actions:
PEP 484 enabled:
mailjet_rest/client.py
mailjet_rest/utils/version.py
test.py
tests
py.typed
to the root foldermypy
settings inpyproject.toml
pyright
settings topyproject.toml
samples
folder from themypy
andruff
settingsmypy
andupright
pre-commit hooksType hints checks locally by commands:
mypy mailjet_rest/ --strict
,mypy tests/ --strict
, andmypy test.py --strict
pyright .
pytype .
Tests:
tests
folder withtest_client.py
andtest_version.py
Code conventions:
.editorconfig
to enable basic code editor conventions.gitignore
for Python packagesPackage management:
mailjet_rest = ["py.typed", "*.pyi"]
totool.setuptools.package-data
settingsbandit
in pre-commit hooks to find common security issues in Python code.Other fixes:
__all__
in themailjet_rest
module because of an invalid object 'Client' and 'get_version', it must contain only stringssample
module's import by adding__init__.py
to thesample
folderNotes: