Skip to content

Commit 067e484

Browse files
Merge branch 'main' into 1063-usethis-badge-socket
2 parents a907957 + 9fff745 commit 067e484

1 file changed

Lines changed: 7 additions & 70 deletions

File tree

tests/docs/test_readme.py

Lines changed: 7 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,8 @@
33

44
def test_assemble_readme_from_docs(usethis_dev_dir: Path):
55
"""The README should be kept in-sync with the corresponding doc packages."""
6-
76
parts = []
87

9-
# Logo
10-
parts.append("""\
11-
<h1 align="center">
12-
<img src="https://raw.githubusercontent.com/usethis-python/usethis-python/refs/heads/main/docs/logo.svg"><br>
13-
</h1>
14-
""")
15-
16-
# Header
17-
parts.append("""\
18-
# usethis
19-
""")
20-
21-
# Badges
22-
parts.append("""\
23-
[![usethis](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/usethis-python/usethis-python/main/assets/badge/v1.json)](https://github.com/usethis-python/usethis-python)
24-
[![PyPI Version](https://img.shields.io/pypi/v/usethis.svg)](https://pypi.python.org/pypi/usethis)
25-
![PyPI License](https://img.shields.io/pypi/l/usethis.svg)
26-
[![PyPI Supported Versions](https://img.shields.io/pypi/pyversions/usethis.svg)](https://pypi.python.org/pypi/usethis)
27-
[![Docs](https://app.readthedocs.org/projects/usethis/badge/?version=stable)](https://usethis.readthedocs.io/en/stable/)
28-
""")
29-
308
# Main sections
319
parts.append(
3210
_get_doc_file(
@@ -40,59 +18,18 @@ def test_assemble_readme_from_docs(usethis_dev_dir: Path):
4018
"`](reference.md#",
4119
"`](https://usethis.readthedocs.io/en/stable/cli/reference#",
4220
)
43-
parts.append("""\
44-
## 📜 Documentation
45-
46-
The usethis documentation is available at [usethis.readthedocs.io](https://usethis.readthedocs.io/en/stable/).
4721

48-
Additionally, the command line reference documentation can be viewed with `usethis --help`.
49-
""")
5022
parts.append(cli_overview_content)
5123
parts.append(_get_doc_file(usethis_dev_dir / "docs" / "example-usage.md"))
5224
parts.append(_get_doc_file(usethis_dev_dir / "docs" / "similar-projects.md"))
5325

54-
# Back matter
55-
parts.append("""\
56-
## 🚀 Development
57-
58-
[![Commits since latest release](https://img.shields.io/github/commits-since/usethis-python/usethis-python/latest.svg)](https://github.com/usethis-python/usethis-python/releases)
59-
[![GitHub Actions Status](https://github.com/usethis-python/usethis-python/workflows/CI/badge.svg)](https://github.com/usethis-python/usethis-python/actions)
60-
[![codecov](https://codecov.io/gh/usethis-python/usethis-python/graph/badge.svg?token=0QW539GSP9)](https://codecov.io/gh/usethis-python/usethis-python)
61-
[![CodSpeed](https://img.shields.io/endpoint?url=https://codspeed.io/badge.json)](https://codspeed.io/usethis-python/usethis-python)
62-
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
63-
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
64-
65-
### Roadmap
66-
67-
Major features planned for later in 2025 are:
68-
69-
- Support for automated GitHub Actions workflows ([#57](https://github.com/usethis-python/usethis-python/issues/57)),
70-
- Support for a typechecker (likely Pyright, [#121](https://github.com/usethis-python/usethis-python/issues/121)), and
71-
72-
Other features are tracked in the [GitHub Issues](https://github.com/usethis-python/usethis-python/issues) page.
73-
74-
### Contributing
75-
76-
See the
77-
[CONTRIBUTING.md](https://github.com/usethis-python/usethis-python/blob/main/CONTRIBUTING.md)
78-
file.
79-
80-
## Acknowledgements
81-
82-
Special thanks to the [Posit](https://posit.co/) team for creating the original [usethis package for **R**](https://usethis.r-lib.org/index.html) , which inspired this project.
83-
84-
Additional thanks are due to the maintainers of the various tools which usethis integrates with, especially [Astral](https://astral.sh/) who created [uv](https://github.com/astral-sh/uv).
85-
86-
## License
87-
88-
usethis is licensed under the MIT license ([LICENSE](https://github.com/usethis-python/usethis-python/blob/main/LICENSE) or <https://opensource.org/licenses/MIT>)
89-
90-
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in usethis by you, as defined in the Apache License, Version 2.0, (<https://www.apache.org/licenses/LICENSE-2.0>), shall be licensed under the MIT license, without any additional terms or conditions.
91-
""")
92-
93-
assert (usethis_dev_dir / "README.md").read_text(encoding="utf-8").replace(
94-
"> [!TIP]\n> ", ""
95-
) == "\n".join(parts)
26+
content = (
27+
(usethis_dev_dir / "README.md")
28+
.read_text(encoding="utf-8")
29+
.replace("> [!TIP]\n> ", "")
30+
)
31+
for part in parts:
32+
assert part in content
9633

9734

9835
def _get_doc_file(

0 commit comments

Comments
 (0)