Skip to content

Commit

Permalink
Hypothesis is that tox-dev/tox-gh#151 only appears with tox.ini confi…
Browse files Browse the repository at this point in the history
…guration. Convert to TOML to test, and because it seems like a good thing to do anyway.
  • Loading branch information
kurtraschke committed Nov 6, 2024
1 parent 53c2d15 commit 784b6f7
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tests
on:
workflow_dispatch:
push:
branches: ["main"]
branches: ["master"]
tags-ignore: ["**"]
pull_request:

Expand Down
2 changes: 0 additions & 2 deletions mypy.ini

This file was deleted.

58 changes: 58 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.mypy]
strict = true

[tool.flake8]
max-line-length = 132

[tool.isort]
profile = "black"

[tool.coverage.run]
omit = ["pyrfc3339/tests/*"]

[tool.tox]
requires = ["tox>=4"]
env_list = ["sort", "format", "style", "type", "3.9", "3.10", "3.11", "3.12", "3.13"]
skip_missing_interpreters = true

[tool.tox.gh.python]
"3.13" = ["sort", "style", "format", "type", "3.13"]
"3.12" = ["3.12"]
"3.11" = ["3.11"]
"3.10" = ["3.10"]
"3.9" = ["3.9"]

[tool.tox.env_run_base]
deps = ["pytest", "pytest-subtests", "pytest-cov", "tzdata;platform_system==\"Windows\""]
commands = [["pytest",
"--doctest-glob=\"docs/source/*.rst\"",
"--doctest-glob=\"README.rst\"",
"--doctest-modules",
"--doctest-continue-on-failure",
"--cov=pyrfc3339",
"."]]

[tool.tox.env.type]
skip_install = true
deps = ["mypy"]
commands = [["mypy", "pyrfc3339"]]

[tool.tox.env.sort]
skip_install = true
deps = ["isort"]
commands = [["isort", "--check", "--diff", "pyrfc3339"]]

[tool.tox.env.format]
skip_install = true
deps = ["black"]
commands = [["black", "--check", "--diff", "pyrfc3339"]]

[tool.tox.env.style]
skip_install = true
deps = ["flake8", "flake8-pyproject"]
commands = [["flake8", "pyrfc3339"]]

[tool.tox.env.docs]
deps = ["-r docs/requirements.txt"]
commands = [["sphinx-build", "-M", "html", "docs/source", "docs/build"]]
60 changes: 0 additions & 60 deletions tox.ini

This file was deleted.

0 comments on commit 784b6f7

Please sign in to comment.