-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
6f52c5c
commit b467683
Showing
2 changed files
with
110 additions
and
88 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -9,7 +9,9 @@ name = "pdm-wheel" | |
description = "PDM plugin that save your requirements as wheels, similar to pip-wheel" | ||
readme = "README.md" | ||
license = { text = "MIT" } | ||
authors = [{ name = "Gabriel Dugny", email = "[email protected]" }] | ||
authors = [ | ||
{ name = "Gabriel Dugny", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
|
@@ -29,19 +31,19 @@ dynamic = [ | |
] | ||
dependencies = [ | ||
] | ||
[project.optional-dependencies] | ||
pdm = [ | ||
"pdm!=2.13.0,!=2.13.1,>=2.7.4", | ||
optional-dependencies.pdm = [ | ||
"pdm!=2.13,!=2.13.1,>=2.7.4", | ||
] | ||
[project.urls] | ||
"Bug Tracker" = "https://github.com/GabDug/pdm-wheel/issues" | ||
"Changelog" = "https://github.com/GabDug/pdm-wheel/blob/main/CHANGELOG.md" | ||
"Homepage" = "https://github.com/GabDug/pdm-wheel" | ||
[project.entry-points.pdm] | ||
pdm-wheel = "pdm_wheel:register_pdm_plugin" | ||
urls."Bug Tracker" = "https://github.com/GabDug/pdm-wheel/issues" | ||
urls."Changelog" = "https://github.com/GabDug/pdm-wheel/blob/main/CHANGELOG.md" | ||
urls."Homepage" = "https://github.com/GabDug/pdm-wheel" | ||
entry-points.pdm.pdm-wheel = "pdm_wheel:register_pdm_plugin" | ||
|
||
[tool.pdm] | ||
plugins = ["sync-pre-commit-lock", "-e ."] | ||
plugins = [ | ||
"sync-pre-commit-lock", | ||
"-e .", | ||
] | ||
|
||
[tool.pdm.version] | ||
source = "scm" | ||
|
@@ -50,44 +52,47 @@ write_template = "__version__: str = \"{}\"\n" | |
|
||
[tool.pdm.build] | ||
package-dir = "src" | ||
includes = ["src", "src/pdm_wheel"] | ||
includes = [ | ||
"src", | ||
"src/pdm_wheel", | ||
] | ||
excludes = [ | ||
"tests/.*", | ||
"tests/build", | ||
"tests/fixtures/.*", | ||
"tests/fixtures/wheels", | ||
".venv", | ||
".pdm-python", | ||
"tests/.*", | ||
"tests/build", | ||
"tests/fixtures/.*", | ||
"tests/fixtures/wheels", | ||
".venv", | ||
".pdm-python", | ||
] | ||
|
||
[tool.pdm.scripts] | ||
fmt = {cmd="black .", help="Run black formatter"} | ||
fmt = { cmd = "black .", help = "Run black formatter" } | ||
test = "pytest" | ||
test-cov = {cmd="pytest --junitxml=junit/test-results.xml --cov --cov-report=xml --cov-report=html --cov-report=term-missing", help="Run tests with coverage"} | ||
doc = {shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview"} | ||
test-cov = { cmd = "pytest --junitxml=junit/test-results.xml --cov --cov-report=xml --cov-report=html --cov-report=term-missing", help = "Run tests with coverage" } | ||
doc = { shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview" } | ||
lint = "pre-commit run --all-files" | ||
lint-mypy = {cmd="mypy src", help="Run mypy type checker"} | ||
lint-ruff = {cmd="ruff check .", help="Run ruff linter"} | ||
lint-mypy = { cmd = "mypy src", help = "Run mypy type checker" } | ||
lint-ruff = { cmd = "ruff check .", help = "Run ruff linter" } | ||
|
||
[tool.pdm.dev-dependencies] | ||
dev = [ | ||
"black>=22.10.0", | ||
"mypy>=1.4", | ||
"pylint>=2.15.4", | ||
"pytest>=7.2.0", | ||
"pytest-cov>=4.0.0", | ||
"pdm>=2.4.0", | ||
"ruff>=0.0.270", | ||
"parver>=0.4", | ||
"ipdb>=0.13.13", | ||
"tox>=4.14.2", | ||
"tox-pdm>=0.7.2", | ||
"tox-gh>=1.3.1", | ||
] | ||
testtox= [ | ||
"pytest>=7.2.0", | ||
"pytest-cov>=4.0.0", | ||
"click>=8.1.7", | ||
"black>=22.10.0", | ||
"mypy>=1.4", | ||
"pylint>=2.15.4", | ||
"pytest>=7.2.0", | ||
"pytest-cov>=4.0.0", | ||
"pdm>=2.4.0", | ||
"ruff>=0.0.270", | ||
"parver>=0.4", | ||
"ipdb>=0.13.13", | ||
"tox>=4.14.2", | ||
"tox-pdm>=0.7.2", | ||
"tox-gh>=1.3.1", | ||
] | ||
testtox = [ | ||
"pytest>=7.2.0", | ||
"pytest-cov>=4.0.0", | ||
"click>=8.1.7", | ||
] | ||
|
||
[tool.black] | ||
|
@@ -109,62 +114,81 @@ extend-exclude = ''' | |
''' | ||
|
||
[tool.ruff] | ||
exclude = [".git", "tests/fixtures/*", "env", "dist", "build", "__pypackages__"] | ||
line-length = 120 | ||
|
||
[tool.ruff.lint] | ||
extend-ignore = ["S101", "E501"] | ||
extend-select = [ | ||
"E", | ||
"F", | ||
"W", | ||
"TCH", | ||
"I", | ||
"Q000", | ||
"TCH", | ||
"I001", | ||
"S", | ||
"T", | ||
"PTH", | ||
"PYI", | ||
"RET", | ||
"D209", | ||
"D202", | ||
"EM101", | ||
exclude = [ | ||
".git", | ||
"__pypackages__", | ||
"build", | ||
"dist", | ||
"env", | ||
"tests/fixtures/*", | ||
] | ||
lint.extend-select = [ | ||
"D202", | ||
"D209", | ||
"E", | ||
"EM101", | ||
"F", | ||
"I", | ||
"I001", | ||
"PTH", | ||
"PYI", | ||
"Q000", | ||
"RET", | ||
"S", | ||
"T", | ||
"TCH", | ||
"W", | ||
] | ||
lint.extend-ignore = [ | ||
"E501", | ||
"S101", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "7.0" | ||
testpaths = ["tests"] | ||
testpaths = [ | ||
"tests", | ||
] | ||
norecursedirs = "*.egg .eggs dist build docs .tox .git __pycache__ node_modules .venv __pypackages__" | ||
|
||
[tool.coverage.paths] | ||
source =[ | ||
"src", | ||
"*/site-packages" | ||
source = [ | ||
"src", | ||
"*/site-packages", | ||
] | ||
[tool.coverage.run] | ||
branch = true | ||
parallel = true | ||
include = ["src/*"] | ||
omit = ["*/tests/*"] | ||
source = ["src", "tests"] | ||
include = [ | ||
"src/*", | ||
] | ||
omit = [ | ||
"*/tests/*", | ||
] | ||
source = [ | ||
"src", | ||
"tests", | ||
] | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
precision = 2 | ||
exclude_lines = [ | ||
"def __repr__", | ||
"if TYPE_CHECKING:", | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
"if __name__ == .__main__.:", | ||
'class .*\bProtocol\):', | ||
'@(abc\.)?abstractmethod]', | ||
"except ImportError:", | ||
"# nocov", | ||
"def __repr__", | ||
"if TYPE_CHECKING:", | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
"if __name__ == .__main__.:", | ||
'class .*\bProtocol\):', | ||
'@(abc\.)?abstractmethod]', | ||
"except ImportError:", | ||
"# nocov", | ||
] | ||
|
||
[tool.mypy] | ||
files = ["src"] | ||
files = [ | ||
"src", | ||
] | ||
strict = true |
This file contains 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,12 +1,17 @@ | ||
[build-system] | ||
build-backend = "pdm.backend" | ||
requires = [ | ||
"pdm-backend", | ||
] | ||
|
||
[project] | ||
name = "test-project" | ||
version = "0.1.0" | ||
description = "" | ||
readme = "README.md" | ||
license = {text = "MIT"} | ||
license = { text = "MIT" } | ||
authors = [ | ||
{name = "John Doe", email = "[email protected]"}, | ||
{ name = "John Doe", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
|
@@ -19,18 +24,11 @@ classifiers = [ | |
dependencies = [ | ||
"requests==2.28.2", | ||
] | ||
[project.optional-dependencies] | ||
opt = [ | ||
optional-dependencies.opt = [ | ||
"pathspec>=0.7", | ||
] | ||
|
||
[build-system] | ||
build-backend = "pdm.backend" | ||
requires = [ | ||
"pdm-backend", | ||
] | ||
|
||
[tool.pdm.dev-dependencies] | ||
dev = [ | ||
"black>=23.3.0", | ||
"black>=23.3.0", | ||
] |