Skip to content

Commit

Permalink
chore: restore manual pyproject format (#51)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii authored May 22, 2024
1 parent 6ca34ee commit c5880fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.0.4"
hooks:
- id: pyproject-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
Expand Down
29 changes: 14 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = [
"hatchling",
]

[project]
name = "sphinxcontrib-moderncmakedomain"
Expand Down Expand Up @@ -34,27 +32,29 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Documentation",
"Topic :: Utilities",
]
dynamic = [
"version",
]
dynamic = ["version"]
dependencies = [
"sphinx>=2",
]
optional-dependencies.test = [

[project.optional-dependencies]
test = [
"defusedxml",
# Setuptools is required due to sphinx installing sphinxcontrib extensions that use pkg_resources (fixed upstream but not released yet)
"pytest",
]
urls.Homepage = "https://github.com/scikit-build/moderncmakedomain"

[project.urls]
Homepage = "https://github.com/scikit-build/moderncmakedomain"


[tool.hatch]
version.path = "sphinxcontrib/moderncmakedomain/__init__.py"
build.targets.wheel.packages = [
"sphinxcontrib",
]
build.targets.wheel.packages = ["sphinxcontrib"]


[tool.ruff]
exclude = [
Expand All @@ -68,6 +68,7 @@ lint.extend-select = [
"UP", # pyupgrade
]


[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
Expand All @@ -82,6 +83,4 @@ filterwarnings = [
"ignore::DeprecationWarning:sphinx.builders.gettext",
]
log_cli_level = "info"
testpaths = [
"tests",
]
testpaths = ["tests"]

0 comments on commit c5880fa

Please sign in to comment.