Skip to content
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

Add pyproject.toml required formatting #473

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lint: \
mypy \
pip-extra-reqs \
pip-missing-reqs \
pyproject-fmt \
pyroma \
ruff \
spelling \
Expand All @@ -21,6 +22,7 @@ lint: \

.PHONY: fix-lint
fix-lint: \
fix-pyproject-fmt \
fix-ruff

.PHONY: docs
Expand Down
8 changes: 8 additions & 0 deletions lint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ vulture:
linkcheck:
$(MAKE) -C docs/ linkcheck SPHINXOPTS=$(SPHINXOPTS)

.PHONY: pyproject-fmt
pyproject-fmt:
pyproject-fmt --check --indent=4 pyproject.toml

.PHONY: fix-pyproject-fmt
fix-pyproject-fmt:
pyproject-fmt --indent=4 pyproject.toml

.PHONY: spelling
spelling:
$(MAKE) -C docs/ spelling SPHINXOPTS=$(SPHINXOPTS)
46 changes: 25 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ ignore = [
strict = true

[build-system]
requires = [
"pip",
"setuptools",
"setuptools_scm[toml]>=7.1.0",
"wheel",
]
build-backend = "setuptools.build_meta"
requires = [
"pip",
"setuptools",
"setuptools_scm[toml]>=7.1",
"wheel",
]

[tool.ruff]
select = ["ALL"]
Expand Down Expand Up @@ -174,29 +174,34 @@ universal = true
[project]
authors = [ { name = "Adam Dangoor", email = "[email protected]"} ]
classifiers = [
"Operating System :: POSIX",
"Environment :: Web Environment",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Pytest",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
]
description = "Tools for interacting with the Vuforia Web Services (VWS) website."
dynamic = ["version"]
keywords = ["vuforia", "vws"]
dynamic = [
"version",
]
keywords = [
"vuforia",
"vws",
]
license = { file = "LICENSE" }
name = "vws-web-tools"
readme = { file = "README.rst", content-type = "text/x-rst"}
requires-python = ">=3.12"
dependencies = [
"PyYAML",
"click",
"PyYAML",
"selenium",
]

[project.optional-dependencies]
dev = [
"Sphinx-Substitution-Extensions==2022.2.16",
"check-manifest==0.49",
"doc8==1.1.1",
"freezegun==1.2.2",
Expand All @@ -205,22 +210,22 @@ dev = [
"pdm==2.9.3",
"pip_check_reqs==2.5.3",
"pylint==3.0.2",
"pyproject-fmt==1.3",
"pyroma==4.2",
"pytest-cov==4.1.0",
"pytest==7.4.3",
"pytest-cov==4.1",
"ruff==0.1.2",
"sphinx-click==5.0.1",
"sphinx-prompt==1.8.0",
"sphinx==7.2.6",
"sphinxcontrib.spelling==8.0.0",
"sphinx-click==5.0.1",
"sphinx-prompt==1.8",
"Sphinx-Substitution-Extensions==2022.2.16",
"sphinxcontrib.spelling==8",
"types-PyYAML==6.0.12.12",
"types-selenium==3.141.9",
"vulture==2.10",
]

[project.urls]
Source = "https://github.com/VWS-Python/vws-web-tools"

[tool.setuptools]
zip-safe = false

Expand All @@ -232,5 +237,4 @@ vws_web_tools = ["py.typed"]

[project.scripts]
vws-web-tools = "vws_web_tools:vws_web_tools_group"

[tool.setuptools_scm]