Skip to content

Commit

Permalink
Add toml reformatting hook (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Nov 13, 2024
1 parent ada380c commit b633d26
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 32 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ default_language_version:
# pylint is not yet compatible with py311
python: python3.10
repos:
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
- repo: https://github.com/pre-commit/mirrors-prettier
# keep it before markdownlint and eslint
rev: "v4.0.0-alpha.8"
Expand Down
63 changes: 31 additions & 32 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,66 +1,65 @@
[build-system]
requires = [
"setuptools >= 61.0",
"setuptools_scm[toml] >= 7.0.0",
"setuptools_scm[toml] >= 7.0.0"
]
build-backend = "setuptools.build_meta"

[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.8"
dynamic = ["version"]

name = "tox-extra"
description = "Performs extra checks before or after running"
readme = "README.md"
authors = [
{"name"="Sorin Sbarnea", "email"="[email protected]"}
{"name" = "Sorin Sbarnea", "email" = "[email protected]"}
]
maintainers = [
{"name"="Sorin Sbarnea", "email"="[email protected]"}
{"name" = "Sorin Sbarnea", "email" = "[email protected]"}
]
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Framework :: tox",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Testing",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Framework :: tox",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Testing"
]
keywords = ["git", "tox", "tox-plugin"]
dependencies = [
"bindep>2.8.1",
"gitpython",
"packaging",
"tox",
"tox"
]

[project.urls]
homepage = "https://github.com/tox-dev/tox-extra"
issues = "https://github.com/tox-dev/tox-extra/issues"
repository = "https://github.com/tox-dev/tox-extra"
changelog = "https://github.com/tox-dev/tox-extra/releases"
[project.entry-points.tox]
extra = "tox_extra.hooks"

[project.optional-dependencies]
test = [
"coverage[toml]>=6.5.0",
"pytest-mock>=3.10.0",
"pytest>=7.2.0",
"testfixtures>=7.0.3",
"coverage[toml]>=6.5.0",
"pytest-mock>=3.10.0",
"pytest>=7.2.0",
"testfixtures>=7.0.3"
]

[project.entry-points.tox]
extra = "tox_extra.hooks"
[project.urls]
homepage = "https://github.com/tox-dev/tox-extra"
issues = "https://github.com/tox-dev/tox-extra/issues"
repository = "https://github.com/tox-dev/tox-extra"
changelog = "https://github.com/tox-dev/tox-extra/releases"

[tool.coverage.run]
parallel = true
[tool.coverage.paths]
source = ["src"]

[tool.coverage.report]
omit = [".tox/*/lib/python*/site-packages/*"]
Expand All @@ -69,8 +68,8 @@ fail_under = 100.0
skip_covered = true
show_missing = true

[tool.coverage.paths]
source = ["src"]
[tool.coverage.run]
parallel = true

[tool.isort]
profile = "black"
Expand Down

0 comments on commit b633d26

Please sign in to comment.