Skip to content

Commit b61f11b

Browse files
authoredMay 26, 2022
πŸ“š [index] Convert to Markdown using MyST (#1207)
* πŸ“š [codeofconduct] Convert to Markdown using MyST * πŸ“š [contributing] Use YAML front matter in include directive * πŸ“š [index] Convert to Markdown using MyST * πŸ“š [css] Remove unused stylesheet and unsupported rst-class directive * πŸ“š [index] Use YAML front matter in toctree directive * πŸ“š [README] Avoid name conflict in black and pre-commit references * πŸ“š [index] Use native include directive for badges and features
1 parent 7b25ec7 commit b61f11b

File tree

7 files changed

+93
-127
lines changed

7 files changed

+93
-127
lines changed
 

β€ŽREADME.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
[![Read the documentation][readthedocs badge]][readthedocs page]
1010
[![Tests][github actions badge]][github actions page]
1111
[![Codecov][codecov badge]][codecov page]<br>
12-
[![pre-commit enabled][pre-commit badge]][pre-commit]
13-
[![Black codestyle][black badge]][black]
12+
[![pre-commit enabled][pre-commit badge]][pre-commit project]
13+
[![Black codestyle][black badge]][black project]
1414
[![Contributor Covenant][contributor covenant badge]][code of conduct]
1515

16-
[black]: https://github.com/psf/black
1716
[black badge]: https://img.shields.io/badge/code%20style-black-000000.svg
17+
[black project]: https://github.com/psf/black
1818
[calver badge]: https://img.shields.io/badge/calver-YYYY.MM.DD-22bfda.svg
1919
[calver]: http://calver.org/
2020
[code of conduct]: https://github.com/cjolowicz/cookiecutter-hypermodern-python/blob/main/CODE_OF_CONDUCT.md
@@ -26,8 +26,8 @@
2626
[github page]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
2727
[license badge]: https://img.shields.io/github/license/cjolowicz/cookiecutter-hypermodern-python
2828
[license]: https://opensource.org/licenses/MIT
29-
[pre-commit]: https://pre-commit.com/
3029
[pre-commit badge]: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
30+
[pre-commit project]: https://pre-commit.com/
3131
[python version badge]: https://img.shields.io/pypi/pyversions/cookiecutter-hypermodern-python-instance
3232
[readthedocs badge]: https://img.shields.io/readthedocs/cookiecutter-hypermodern-python/latest.svg?label=Read%20the%20Docs
3333
[readthedocs page]: https://cookiecutter-hypermodern-python.readthedocs.io/

β€Ždocs/_static/custom.css

-4
This file was deleted.

β€Ždocs/codeofconduct.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```{include} ../CODE_OF_CONDUCT.md
2+
3+
```

β€Ždocs/codeofconduct.rst

-2
This file was deleted.

β€Ždocs/contributing.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
```{include} ../CONTRIBUTING.md
2-
:end-before: <!-- github-only -->
2+
---
3+
end-before: <!-- github-only -->
4+
---
35
```
46

57
[code of conduct]: codeofconduct

β€Ždocs/index.md

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Hypermodern Python Cookiecutter
2+
3+
```{toctree}
4+
---
5+
hidden: true
6+
maxdepth: 1
7+
---
8+
9+
Quickstart <quickstart>
10+
guide
11+
contributing
12+
Code of Conduct <codeofconduct>
13+
license
14+
Changelog <https://github.com/cjolowicz/cookiecutter-hypermodern-python/releases>
15+
```
16+
17+
```{include} ../README.md
18+
---
19+
start-after: <!-- badges-begin -->
20+
end-before: <!-- badges-end -->
21+
---
22+
```
23+
24+
[Cookiecutter] template for a Python package
25+
based on the [Hypermodern Python] article series.
26+
27+
## Usage
28+
29+
```console
30+
$ cookiecutter gh:cjolowicz/cookiecutter-hypermodern-python \
31+
--checkout="2021.11.26"
32+
```
33+
34+
## Features
35+
36+
```{include} ../README.md
37+
---
38+
start-after: <!-- features-begin -->
39+
end-before: <!-- features-end -->
40+
---
41+
```
42+
43+
## FAQ
44+
45+
### What is this project about?
46+
47+
The mission of this project is to
48+
enable current best practices
49+
through modern Python tooling.
50+
51+
### What makes this project different from other Python templates?
52+
53+
This is a general-purpose template for Python libraries and applications.
54+
55+
Our goals are:
56+
57+
- Focus on simplicity and minimalism
58+
- Promote code quality through automation
59+
- Provide reliable and repeatable processes
60+
61+
The project template is centered around the following tools:
62+
63+
- [Poetry][1] for packaging and dependency management
64+
- [Nox][2] for automation of checks and other development tasks
65+
- [GitHub Actions][3] for continuous integration and delivery
66+
67+
[1]: https://python-poetry.org/
68+
[2]: https://nox.thea.codes/
69+
[3]: https://github.com/features/actions
70+
71+
### Why is this Python template called "hypermodern"?
72+
73+
[Hypermodernism] is a school of chess that dates back to more than a century ago.
74+
If this setup ever goes out of fashion,
75+
I can pretend it was my secret plan from the start.
76+
All images on the
77+
[associated blog][hypermodern python] show
78+
[past visions][retrofuturism] of the future.
79+
80+
[cookiecutter]: https://github.com/audreyr/cookiecutter
81+
[hypermodern python]: https://medium.com/@cjolowicz/hypermodern-python-d44485d9d769
82+
[hypermodernism]: https://en.wikipedia.org/wiki/Hypermodernism_(chess)
83+
[retrofuturism]: https://en.wikipedia.org/wiki/Retrofuturism

β€Ždocs/index.rst

-116
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.