1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

Drop Py37, improve typing and docstrings (#544)

Drops Py3.7, improves typing and adds a mypy config, improves the docstrings and isorts the imports.

* configure isort
* sort with isort
* add github action
* enable flake8-docstrings
* fix docstrings
* add mypy env
* no implicit optional
* add type for raw
* add some type hints
This commit is contained in:
Patrick Kanzler
2023-08-15 01:03:36 +02:00
committed by GitHub
parent 2b62c8e28d
commit fbabd8ed88
45 changed files with 465 additions and 345 deletions

View File

@@ -31,7 +31,7 @@ project_urls =
Release Notes = https://github.com/python-escpos/python-escpos/releases
[options]
python_requires = >=3.6
python_requires = >=3.8
zip_safe = false
include_package_data = true
install_requires =
@@ -46,7 +46,6 @@ install_requires =
PyYAML
argparse
argcomplete
future
importlib_resources
setup_requires = setuptools_scm
tests_require =
@@ -65,4 +64,3 @@ tests_require =
exclude = .git,.tox,.github,.eggs,__pycache__,doc/conf.py,build,dist,capabilities-data,test,src/escpos/constants.py
max-line-length = 120
extend-ignore = E203, W503
# future-imports = absolute_import, division, print_function, unicode_literals # we are not there yet