-
Notifications
You must be signed in to change notification settings - Fork 311
ref(tox-config): migrate tox config from tox.ini to pyproject.toml
#700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hasansezertasan
wants to merge
15
commits into
python-escpos:master
Choose a base branch
from
hasansezertasan:migrate/tox-config
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+125
−101
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4c26f5f
ref(tox-config): migrate tox config from `tox.ini` to `pyproject.toml`
hasansezertasan 87c418f
Merge branch 'master' into migrate/tox-config
hasansezertasan 0151407
remove redundant files
hasansezertasan 81e1a60
Update pyproject.toml
hasansezertasan f5ebc3a
Update CHANGELOG for version 3.2 and modify pyproject.toml to use lis…
hasansezertasan 26a22d9
Update pyproject.toml
hasansezertasan 868f3f5
Update Python version matrix in GitHub Actions workflow to remove Pyt…
hasansezertasan 37abc66
Update GitHub Actions workflows to use `tox-gh` instead of `tox-gh-ac…
hasansezertasan 62b89e9
Refactor pyproject.toml for improved formatting and consistency in de…
hasansezertasan 2175364
Remove unnecessary dependency `tox-uv` from pyproject.toml
hasansezertasan 64c9e03
Update GitHub Actions workflows to specify `pyproject.toml` for `tox`…
hasansezertasan 9e1a9ce
Update GitHub Actions workflow to specify `pyproject.toml` for `tox` …
hasansezertasan 6624ef4
remove redundant files
hasansezertasan c77246a
Fix formatting in docstring of software_columns.py for consistency.
hasansezertasan 983f935
Update pyproject.toml to simplify Python 3.13 environment configurati…
hasansezertasan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,127 @@ | ||
| [tool.black] | ||
| extend-exclude = 'capabilities-data' | ||
|
|
||
|
|
||
| [tool.isort] | ||
| profile = "black" | ||
|
|
||
|
|
||
| [tool.pytest.ini_options] | ||
| minversion = "6.0" | ||
| addopts = "--doctest-modules --cov escpos --cov-report=xml" | ||
| testpaths = [ | ||
| "test", | ||
| "src", | ||
| "src/escpos", | ||
| "escpos", | ||
| ] | ||
| testpaths = ["test", "src", "src/escpos", "escpos"] | ||
|
|
||
|
|
||
| [[tool.mypy.overrides]] | ||
| module = ["pytest", | ||
| "jaconv", | ||
| "scripttest", | ||
| "barcode.*", | ||
| "qrcode", | ||
| "usb.*", | ||
| "cups", | ||
| "win32print" | ||
| ] | ||
| module = [ | ||
| "pytest", | ||
| "jaconv", | ||
| "scripttest", | ||
| "barcode.*", | ||
| "qrcode", | ||
| "usb.*", | ||
| "cups", | ||
| "win32print", | ||
| ] | ||
| ignore_missing_imports = true | ||
|
|
||
|
|
||
| [tool.tox] | ||
| requires = ["tox>=4.11"] | ||
| envlist = ["3.9", "3.10", "3.11", "3.12", "3.13", "docs", "flake8", "mypy"] | ||
|
|
||
|
|
||
| [tool.tox.gh.python] | ||
| "3.13" = ["3.13"] | ||
| "3.12" = ["3.12"] | ||
| "3.11" = ["3.11"] | ||
| "3.10" = ["3.10"] | ||
| "3.9" = ["3.9"] | ||
|
|
||
|
|
||
| [tool.tox.env_run_base] | ||
| deps = [ | ||
| "jaconv", | ||
| "coverage", | ||
| "scripttest", | ||
| "mock", | ||
| "pytest>=7.4", | ||
| "pytest-cov", | ||
| "pytest-mock", | ||
| "hypothesis>=6.83", | ||
| "python-barcode>=0.15.0,<1", | ||
| ] | ||
| extras = ["all"] | ||
| commands = [["pytest"]] | ||
| passenv = [ | ||
| "ESCPOS_CAPABILITIES_PICKLE_DIR", | ||
| "ESCPOS_CAPABILITIES_FILE", | ||
| "CI", | ||
| "TRAVIS", | ||
| "TRAVIS_*", | ||
| "APPVEYOR", | ||
| "APPVEYOR_*", | ||
| "CODECOV_*", | ||
| ] | ||
| setenv = { PY_IGNORE_IMPORTMISMATCH = "1" } | ||
|
|
||
|
|
||
| [tool.tox.env.docs] | ||
| base_python = ["python"] | ||
| changedir = "doc" | ||
| deps = [ | ||
| "sphinx>=7.2.3", | ||
| "setuptools_scm", | ||
| "python-barcode>=0.15.0,<1", | ||
| "sphinx-argparse", | ||
| "sphinxcontrib-spelling>=8.0.0", | ||
| "sphinxcontrib.datatemplates", | ||
| "sphinx-autodoc-typehints", | ||
| "sphinx_rtd_theme", | ||
| "pycups", | ||
| ] | ||
| commands = [ | ||
| [ | ||
| "sphinx-build", | ||
| "-W", | ||
| "-b", | ||
| "html", | ||
| "-d", | ||
| "{envtmpdir}/doctrees", | ||
| ".", | ||
| "{envtmpdir}/html", | ||
| ], | ||
| [ | ||
| "sphinx-build", | ||
| "-W", | ||
| "-b", | ||
| "spelling", | ||
| "-d", | ||
| "{envtmpdir}/doctrees", | ||
| ".", | ||
| "{envtmpdir}/spelling", | ||
| ], | ||
| ] | ||
|
|
||
|
|
||
| [tool.tox.env.flake8] | ||
| base_python = ["python"] | ||
| deps = ["flake8", "flake8-docstrings"] | ||
| commands = [["flake8"]] | ||
|
|
||
|
|
||
| [tool.tox.env.mypy] | ||
| base_python = ["python"] | ||
| deps = [ | ||
| "mypy", | ||
| "types-six", | ||
| "types-mock", | ||
| "types-PyYAML", | ||
| "types-Pillow", | ||
| "types-pyserial", | ||
| "types-pywin32>=306.0.0.6", | ||
| "types-flask", | ||
| "hypothesis>=6.83", | ||
| "jaconv", | ||
| ] | ||
| commands = [["mypy", "src", "test", "examples"]] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.