|
| 1 | +[tool.pytest.ini_options] |
| 2 | +addopts = "--pdbcls=IPython.terminal.debugger:Pdb" |
| 3 | + |
| 4 | +[tool.nbqa.addopts] |
| 5 | +flake8 = [ |
| 6 | + # notebooks allow non-top imports |
| 7 | + "--extend-ignore=E402", |
| 8 | + # jupysql notebooks might have "undefined name" errors |
| 9 | + # due to the << operator |
| 10 | + # W503, W504 ignore line break after/before |
| 11 | + # binary operator since they are conflicting |
| 12 | + "--ignore=F821, W503, W504", |
| 13 | +] |
| 14 | + |
| 15 | +[tool.pkgmt] |
| 16 | +# used to add links to issue numbers in CHANGELOG.md |
| 17 | +github = "ploomber/$project_name" |
| 18 | +# used to check that the package is importable when running pkgmt setup |
| 19 | +package_name = "$package_name" |
| 20 | +# defines the conda environment name when using pkgmt setup, if missing, |
| 21 | +# package_name is used |
| 22 | +env_name = "$project_name" |
| 23 | + |
| 24 | +[tool.pkgmt.check_links] |
| 25 | +extensions = ["md", "rst", "py", "ipynb"] |
| 26 | + |
| 27 | + |
| 28 | +# build settings |
| 29 | +# https://github.com/pypa/sampleproject/blob/main/pyproject.toml |
| 30 | + |
| 31 | +[build-system] |
| 32 | +requires = ["setuptools"] |
| 33 | +build-backend = "setuptools.build_meta" |
| 34 | + |
| 35 | +[project] |
| 36 | +name = "$project_name" |
| 37 | +version = "0.0.1" |
| 38 | +description = "A sample Python project" |
| 39 | +readme = "README.md" |
| 40 | +requires-python = ">=3.9" |
| 41 | +license = { file = "LICENSE.txt" } |
| 42 | +keywords = ["sample", "setuptools", "development"] |
| 43 | +authors = [{ name = "A. Random Developer", email = "[email protected]" }] |
| 44 | +maintainers = [ |
| 45 | + { name = "A. Great Maintainer", email = "[email protected]" }, |
| 46 | +] |
| 47 | +classifiers = [ |
| 48 | + "Programming Language :: Python :: 3", |
| 49 | + "Programming Language :: Python :: 3.9", |
| 50 | + "Programming Language :: Python :: 3.10", |
| 51 | + "Programming Language :: Python :: 3.11", |
| 52 | + "Programming Language :: Python :: 3.12", |
| 53 | + "Programming Language :: Python :: 3.13", |
| 54 | + "Programming Language :: Python :: 3 :: Only", |
| 55 | +] |
| 56 | +dependencies = [] |
| 57 | +[project.optional-dependencies] |
| 58 | +dev = ["pytest", "flake8", "invoke", "twine"] |
| 59 | + |
| 60 | +[project.urls] |
| 61 | +"Homepage" = "https://github.com/pypa/sampleproject" |
| 62 | +"Bug Reports" = "https://github.com/pypa/sampleproject/issues" |
| 63 | +"Funding" = "https://donate.pypi.org" |
| 64 | +"Say Thanks!" = "http://saythanks.io/to/example" |
| 65 | +"Source" = "https://github.com/pypa/sampleproject/" |
| 66 | + |
| 67 | +[project.scripts] |
| 68 | +$project_name = "$package_name.cli:cli" |
| 69 | + |
| 70 | +[tool.setuptools] |
| 71 | +package-data = { "$package_name" = ["assets/*", "*.md"] } |
0 commit comments