Skip to content

Commit 912f61b

Browse files
authored
Merge pull request #2 from boltronics/consolidate_configs
Consolidate configs
2 parents a8d27b5 + 316cfba commit 912f61b

File tree

8 files changed

+286
-305
lines changed

8 files changed

+286
-305
lines changed

README.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Cookiecutter Python Project
22
###########################
33

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

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

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

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

{{cookiecutter.package_name}}/.coveragerc

Lines changed: 0 additions & 25 deletions
This file was deleted.

{{cookiecutter.package_name}}/.pylintrc

Lines changed: 0 additions & 264 deletions
This file was deleted.

{{cookiecutter.package_name}}/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ check-types:
120120
# help: check-lint - run static analysis checks
121121
.PHONY: check-lint
122122
check-lint:
123-
@pylint --rcfile=.pylintrc \
124-
{{cookiecutter.package_name}} \
123+
@pylint {{cookiecutter.package_name}} \
125124
examples \
126125
tests
127126

{{cookiecutter.package_name}}/examples/quickstart.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
"""
1+
"""Quickstart example
2+
23
This example script imports the {{cookiecutter.package_name}} package and
34
prints out the version.
45
"""
56

67
import {{cookiecutter.package_name}}
78

89

9-
def main():
10+
def main() -> None:
11+
"""Begin execution"""
1012
print(f"{{cookiecutter.package_name}} version: {% raw -%}
1113
{
1214
{%- endraw %}{{cookiecutter.package_name}}.__version__{% raw -%}

0 commit comments

Comments
 (0)