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
20 changes: 10 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Cookiecutter Python Project
###########################

This project contains a Cookiecutter template that helps you create new Python
3.7+ package projects by automatically generating most of the boiler plate
3.11+ package projects by automatically generating most of the boiler plate
content for you.

Cookiecutter is a command-line utility that creates projects from templates.
Expand All @@ -21,14 +21,15 @@ the following items:
- A Makefile that automates many common developer tasks, such as:

- Creating a Virtual environment
- Checking code style.
- Performing static analysis checks.
- Running unit tests.
- Checking code coverage.
- Generating documentation.
- Checking and formatting code style with ``black`` and ``isort``.
- Performing static analysis checks with ``pylint``.
- Performing type checking with ``mypy``.
- Running unit tests with Python's ``unittest``.
- Checking code coverage with ``coverage``.
- Generating documentation with ``Sphinx``.
- Generating, testing and uploading a project release to PyPI.

- A ``setup.py`` file used to generate project install and releases.
- A ``pyproject.toml`` file used to manage nearly all project configuration.
- A ``CONTRIBUTING.rst`` guide. On Github this file is shown when sending
a pull request or an issue. This file also gets included in the generated
developer documentation.
Expand All @@ -38,9 +39,8 @@ the following items:
- An ``examples`` directory with a minimal quickstart example script. This
script imports the package and prints the package version. It is also
called by the unit test suite to ensure it always works.
- A ``tests`` directory containing a basic unit test (using unittest) and
a shell script that can be used to test a wheel distribution of the
package.
- A ``tests`` directory containing a basic unit test and a shell
script that can be used to test a wheel distribution of the package.
- A Github Actions continuous integration configuration.
- A ``docs`` directory with pre-configured Sphinx documentation containing:

Expand Down
25 changes: 0 additions & 25 deletions {{cookiecutter.package_name}}/.coveragerc

This file was deleted.

264 changes: 0 additions & 264 deletions {{cookiecutter.package_name}}/.pylintrc

This file was deleted.

3 changes: 1 addition & 2 deletions {{cookiecutter.package_name}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ check-types:
# help: check-lint - run static analysis checks
.PHONY: check-lint
check-lint:
@pylint --rcfile=.pylintrc \
{{cookiecutter.package_name}} \
@pylint {{cookiecutter.package_name}} \
examples \
tests

Expand Down
6 changes: 4 additions & 2 deletions {{cookiecutter.package_name}}/examples/quickstart.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
"""
"""Quickstart example

This example script imports the {{cookiecutter.package_name}} package and
prints out the version.
"""

import {{cookiecutter.package_name}}


def main():
def main() -> None:
"""Begin execution"""
print(f"{{cookiecutter.package_name}} version: {% raw -%}
{
{%- endraw %}{{cookiecutter.package_name}}.__version__{% raw -%}
Expand Down
Loading
Loading