Skip to content
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: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ Once you've installed tox, you can run the `tox` command in the root of the proj
### Linting, type checking, and formatting

Several other project development activities such as linting, type checking, and formatting are also available as tox environments.
You can see all available tasks in `setup.cfg`.
You can see all available tasks in `pyproject.toml`.
These will be run when you open a pull request, and the checks will fail if you haven't fixed any issues locally.
If this happens, run the tasks locally to find and fix any issues, then push your changes.
142 changes: 142 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,151 @@
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.9"
name = "repo-man"
version = "0.0.11"
description = "Manage repositories of a variety of different types."
authors = [
{ name = "Dane Hillard", email = "github@danehillard.com" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"typer>=0.12.5"
]

[project.urls]
Documentation = "https://repo-man.readthedocs.org"
Repository = "https://github.com/easy-as-python/repo-man"
Issues = "https://github.com/easy-as-python/repo-man/issues"

[tool.setuptools.packages.find]
where = ["src"]
exclude = ["test*"]

[project.scripts]
repo-man = "repo_man.cli:main"

[project.optional-dependencies]
docs = [
"furo",
"myst-parser",
"sphinx",
"sphinx-autobuild",
]

######################
# Tool configuration #
######################

[tool.black]
line-length = 120
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']

[tool.isort]
profile = "black"

[tool.mypy]
strict = true
python_version = "3.9"
warn_unused_configs = true
show_error_context = true
pretty = true
namespace_packages = true
check_untyped_defs = true

[tool.pytest.ini_options]
testpaths = ["test"]
addopts = ["--cov", "--strict-markers"]
xfail_strict = true

[tool.coverage.run]
source = ["repo_man"]
branch = true

[tool.coverage.report]
fail_under = 90.00
show_missing = true
skip_covered = true

[tool.coverage.paths]
source = [
"src/repo_man",
"*/site-packages/repo_man",
]

[tool.tox]
envlist = ["py39", "py310", "py311", "py312", "py313"]
isolated_build = true

[tool.tox.env_run_base]
package = "wheel"
wheel_build_env = ".pkg"
deps = [
"pytest",
"pytest-cov",
"pytest-randomly",
]
commands = [
["pytest", { replace = "posargs", default = [], extend = true }],
]

[tool.tox.env.typecheck]
deps = [
{ replace = "ref", of = ["tool", "tox", "env_run_base", "deps"], extend = true },
"mypy",
"types-termcolor",
]
commands = [
["mypy", { replace = "posargs", default = ["src", "test"], extend = true }],
]

[tool.tox.env.format]
skip_install = true
deps = [
"black",
"isort",
]
commands = [
["black", { replace = "posargs", default = ["--check", "--diff", "src", "test"], extend = true }],
["isort", { replace = "posargs", default = ["--check", "--diff", "src", "test"], extend = true }],
]

[tool.tox.env.lint]
skip_install = true
deps = [
"ruff",
]
commands = [
["ruff", "check", { replace = "posargs", default = ["src", "test"], extend = true }],
]

[tool.tox.env.docs]
extras = [
"docs",
]
commands = [
["sphinx-apidoc", "--force", "--implicit-namespaces", "--module-first", "--separate", "-o", "docs/reference", "src/repo_man/"],
["sphinx-build", "-n", "-W", "--keep-going", "-b", "html", "docs/", "docs/_build/"],
]

[tool.tox.env.devdocs]
extras = [
"docs",
]
commands = [
["sphinx-apidoc", "--force", "--implicit-namespaces", "--module-first", "--separate", "-o", "docs/reference", "src/repo_man/"],
["sphinx-autobuild", "-n", "-W", "-b", "html", "docs/", "docs/_build/"],
]
151 changes: 0 additions & 151 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.