Skip to content

Commit 7f2bcf6

Browse files
authored
Merge pull request #172 from Tecnativa/update-docs
Update docs and add better autoformatting for them
2 parents 485d840 + 66ea5ee commit 7f2bcf6

File tree

6 files changed

+180
-136
lines changed

6 files changed

+180
-136
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,21 @@ jobs:
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
- name: generate cache key PY
24-
run: echo "::set-env name=PY::$((python -VV; pip freeze) | sha256sum | cut -d' '
24+
run:
25+
echo "::set-env name=PY::$((python -VV; pip freeze) | sha256sum | cut -d' '
2526
-f1)"
2627
- uses: actions/cache@v1
2728
with:
2829
path: ~/.cache
29-
key: cache-${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{ hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
30+
key:
31+
cache-${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{
32+
hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
3033
- uses: actions/cache@v1
3134
with:
3235
path: ~/.local
33-
key: local-${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{ hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
36+
key:
37+
local-${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{
38+
hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
3439
- run: git config --global user.name copier-ci
3540
- run: git config --global user.email copier@copier
3641
- run: python -m pip install poetry poetry-dynamic-versioning
@@ -56,12 +61,15 @@ jobs:
5661
python-version: 3.8
5762
- run: python -m pip install poetry poetry-dynamic-versioning
5863
- name: generate cache key PY
59-
run: echo "::set-env name=PY::$((python -VV; pip freeze) | sha256sum | cut -d' '
64+
run:
65+
echo "::set-env name=PY::$((python -VV; pip freeze) | sha256sum | cut -d' '
6066
-f1)"
6167
- uses: actions/cache@v1
6268
with:
6369
path: ~/.cache
64-
key: ${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{ hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
70+
key:
71+
${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{
72+
hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
6573
- run: poetry install
6674
- name: Build dist
6775
run: |

.github/workflows/coverage.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ jobs:
1717
python-version: 3.8
1818
- run: python -m pip install poetry poetry-dynamic-versioning
1919
- name: generate cache key PY
20-
run: echo "::set-env name=PY::$((python -VV; pip freeze) | sha256sum | cut -d' '
20+
run:
21+
echo "::set-env name=PY::$((python -VV; pip freeze) | sha256sum | cut -d' '
2122
-f1)"
2223
- uses: actions/cache@v1
2324
with:
2425
path: ~/.cache
25-
key: ${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{ hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
26+
key:
27+
${{ env.PY }}|${{ hashFiles('pyproject.toml') }}|${{
28+
hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
2629
- run: git config --global user.name copier-ci
2730
- run: git config --global user.email copier@copier
2831
- run: poetry install

.prettierrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
bracketSpacing: false
33
endOfLine: lf
44
printWidth: 88
5+
proseWrap: always

CHANGELOG.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
4-
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
3+
All notable changes to this project will be documented in this file. This project
4+
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
55

66
### Version 3.0.0 (2020-03)
77

8-
This is a big release with many new features added and improved.
9-
The code base also received a lot of love and hardening.
8+
This is a big release with many new features added and improved. The code base also
9+
received a lot of love and hardening.
1010

1111
#### Features:
1212

1313
- Minimal supported Python version is now 3.6.
1414
- Dropped support for deprecated `voodoo.json`.
1515
- Introduced gitignore-style patterns for `exclude` und `skip-if-exists`.
1616
- Dropped support for `include` option.
17-
- Added support for extending content of config files via content of other files via `pyaml-include`.
17+
- Added support for extending content of config files via content of other files via
18+
`pyaml-include`.
1819
- Customizable template extension.
1920
- Ability to remember last answers.
2021
- Ability to choose where to remember them.
21-
- Template upgrades support, (based on the previous points) with migration tasks specification.
22+
- Template upgrades support, (based on the previous points) with migration tasks
23+
specification.
2224
- Extended questions format, supporting help, format, choices and secrets.
2325
- More beautiful prompts.
2426
- New CLI experience.
@@ -41,21 +43,24 @@ The code base also received a lot of love and hardening.
4143
- Improve the output when running tasks.
4244
- Remove the destination folder if the copy process or one of the tasks fail.
4345
- Add a `cleanup_on_error` flag to optionally disable the cleanup feature.
44-
- Add the `skip_if_exists` option to skip files, without asking, if they already exists in the destination folder.
46+
- Add the `skip_if_exists` option to skip files, without asking, if they already exists
47+
in the destination folder.
4548

4649
### Version 2.4.2 (2019-06)
4750

4851
- Fix MAJOR bug that was preventing the `_exclude`, `_include` and `_tasks` keys from
49-
`copier.yml` (or alternatives) to be used at all. It also interpreted `_tasks` as
50-
a user-provided variable.
52+
`copier.yml` (or alternatives) to be used at all. It also interpreted `_tasks` as a
53+
user-provided variable.
5154

5255
### Version 2.4 (2019-06)
5356

5457
- Empty folders are now copied. The folders are also displayed in the console output
5558
instead of just the files.
56-
- `prompt_bool` can now have an undefined default (ans answer is mandatory in that case).
59+
- `prompt_bool` can now have an undefined default (ans answer is mandatory in that
60+
case).
5761
- Reactivates the `copier.yml` and `copier.yaml` as configuration files.
58-
- The new `extra_paths` argument specifies additional paths to find templates to inherit from.
62+
- The new `extra_paths` argument specifies additional paths to find templates to inherit
63+
from.
5964

6065
### Version 2.3 (2019-04)
6166

@@ -69,17 +74,17 @@ The code base also received a lot of love and hardening.
6974
### Version 2.1 (2019-02)
7075

7176
- Task runner 🎉.
72-
- Use `_exclude`, `_include`, and `_tasks` keys in `copier.yml` as the default
73-
values for the `.copy()` arguments `exclude`, `include`, and `tasks`.
77+
- Use `_exclude`, `_include`, and `_tasks` keys in `copier.yml` as the default values
78+
for the `.copy()` arguments `exclude`, `include`, and `tasks`.
7479

7580
### Version 2.0 (2019-02)
7681

7782
- Rebranded from `Voodoo` to `Copier`!
7883
- Dropped support for Python 2.x, the minimal version is now Python 3.5.
7984
- Cleanup and 100% test coverage.
80-
- The recommended configuration file is now `copier.yaml`, but a `copier.json`
81-
can be used as well. The old `voodoo.json` is also supported _for now_ but is
82-
deprecated and will be removed in version 2.2.
85+
- The recommended configuration file is now `copier.yaml`, but a `copier.json` can be
86+
used as well. The old `voodoo.json` is also supported _for now_ but is deprecated and
87+
will be removed in version 2.2.
8388
- Python package format updated to the latest standard (no `setup.py` 😵).
8489
- Renamed the `render_skeleton()` function to `copy()`. The function signature remains
8590
almost the same, the only changes are:

CONTRIBUTING.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Contributing
22

3-
Contributions are welcome, and they are greatly appreciated! Every
4-
little bit helps, and credit will always be given.
3+
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and
4+
credit will always be given.
55

66
You can contribute in many ways:
77

@@ -12,25 +12,23 @@ Report bugs at <https://github.com/jpscaletti/copier/issues>.
1212
If you are reporting a bug, please include:
1313

1414
- Your operating system name and version.
15-
- Any details about your local setup that might be helpful in
16-
troubleshooting.
15+
- Any details about your local setup that might be helpful in troubleshooting.
1716
- Detailed steps to reproduce the bug.
1817

1918
### Fix Bugs
2019

21-
Look through the GitHub issues for bugs. Anything tagged with "bug" is
22-
open to whoever wants to implement it.
20+
Look through the GitHub issues for bugs. Anything tagged with "bug" is open to whoever
21+
wants to implement it.
2322

2423
### Implement Features
2524

26-
Look through the GitHub issues for features. Anything tagged with
27-
"Feature request" is open to whoever wants to implement it.
25+
Look through the GitHub issues for features. Anything tagged with "Feature request" is
26+
open to whoever wants to implement it.
2827

2928
### Write Documentation
3029

31-
The project could always use more documentation, whether as part of the
32-
official project docs, or even on the web in blog posts, articles, and
33-
such.
30+
The project could always use more documentation, whether as part of the official project
31+
docs, or even on the web in blog posts, articles, and such.
3432

3533
### Submit Feedback
3634

@@ -41,8 +39,8 @@ If you are proposing a feature:
4139

4240
- Explain in detail how it would work.
4341
- Keep the scope as narrow as possible, to make it easier to implement.
44-
- Remember that this is a volunteer-driven project, and that
45-
contributions are welcome :)
42+
- Remember that this is a volunteer-driven project, and that contributions are welcome
43+
:)
4644

4745
## Get Started!
4846

@@ -96,8 +94,7 @@ git push origin name-of-your-bugfix-or-feature
9694
Before you submit a pull request, check that it meets these guidelines:
9795

9896
1. The pull request has code, it should include tests.
99-
2. Run `tox` and make sure that the tests pass for all supported Python
100-
versions.
97+
2. Run `tox` and make sure that the tests pass for all supported Python versions.
10198

10299
## Tips
103100

0 commit comments

Comments
 (0)