Skip to content

Commit 0e8107e

Browse files
authored
chore: sync templated files to newest template version (#25)
https://github.com/feeph/pypackage-template/releases/tag/v0.2.1
1 parent 0faf8f8 commit 0e8107e

15 files changed

Lines changed: 956 additions & 181 deletions

.copier/answers_pypackage.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
3+
#
4+
# You can use `pdm run copier update --defaults` to update the template
5+
# files using the answers stored in this file.
6+
# (see https://copier.readthedocs.io/en/stable/updating/ for details)
7+
8+
_commit: v0.2.1
9+
_src_path: https://github.com/feeph/pypackage-template
10+
author_email: 55798703+feeph@users.noreply.github.com
11+
author_name: Feeph Aifeimei
12+
default_branch: master
13+
is_typed: true
14+
issuetracker_url: https://github.com/feeph/libi2cmux-python/issues
15+
max_line_length: 250
16+
package_description: library for various I²C bus multiplexers (e.g. TCA9548A)
17+
package_name: i2cmux
18+
package_namespace: feeph
19+
python_constraint: '>=3.10,<3.13'
20+
repository_name: libi2cmux-python
21+
repository_url: https://github.com/feeph/libi2cmux-python

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# repository and assigned a permission level first. Otherwise they will
77
# be underlined with red squiggly lines when looking at the file in the
88
# WebGUI and it won't work.
9-
# -> https://github.com/feeph/libi2cmux-python/settings/access
9+
# (GitHub -> Repository -> Settings -> Collaborators)
1010
#
1111

1212
# define default ownership

.github/dependabot.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# enable dependabot's scanning but do not allow creation of pull requests
3+
# (please use 'scripts/update_dependencies' to update the dependencies)
4+
#
5+
# - dependabot does not understand PEP-621 repositories (pyproject.toml)
6+
# - dependabot expects the filename to end in '<...>requirements.txt' and
7+
# ignores requirements-dev.txt ('dev-requirements.txt' would work but
8+
# that's kinda stupid since the requirements files are no longer grouped
9+
# by name -> we should optimize for humans instead of computers)
10+
# - renovate supports PEP-621 but it gets confused since we provide
11+
# requirements.txt which makes it ignore pyproject.toml and pdm.lock
12+
#
13+
# --> provide our own mechanism to update requirements*.txt AND pdm.lock
14+
15+
version: 2
16+
17+
updates:
18+
- package-ecosystem: pip
19+
directory: "/"
20+
schedule:
21+
interval: daily
22+
time: "13:00"
23+
groups:
24+
python-packages:
25+
patterns:
26+
- "*"
27+
open-pull-requests-limit: 0

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
# documentation can be found at https://pre-commit.com/
44
#
55
# perform once after cloning the repository:
6-
# pipx install pre-commit
7-
# pre-commit install --allow-missing-config --hook-type pre-commit
8-
# pre-commit install --allow-missing-config --hook-type commit-msg
9-
# pre-commit install --allow-missing-config --hook-type post-commit
10-
# pre-commit install --allow-missing-config --hook-type pre-push
6+
# scripts/prepare_repository
117
#
128
# if you want to trigger pre-commit manually:
139
# pre-commit run
10+
# pre-commit run --all-files
1411
#
1512
repos:
1613
- repo: https://github.com/pre-commit/pre-commit-hooks
1714
rev: v2.3.0
1815
hooks:
16+
- id: check-merge-conflict
17+
args: [--assume-in-merge]
1918
- id: check-json
19+
- id: check-toml
2020
- id: check-yaml
2121
- id: end-of-file-fixer
2222
- id: trailing-whitespace

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# libi2cmux-python
22

3+
[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json)](https://github.com/copier-org/copier)
34
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
45
[![pdm-managed](https://img.shields.io/endpoint?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fpdm-project%2F.github%2Fbadge.json)](https://pdm-project.org)
56
[![tox](https://img.shields.io/badge/tox-ab79d2)](https://tox.wiki/)
@@ -12,7 +13,7 @@ library for various I²C bus multiplexers (e.g. TCA9548A)
1213

1314
## Bugs & Features
1415

15-
Please submit bugs and request features on the [issue tracker]( https://github.com/feeph/libi2cmux-python/issues).
16+
Please submit bugs and request features on the [issue tracker](https://github.com/feeph/libi2cmux-python/issues).
1617

1718
Contributions are always welcome.
1819

docs/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ tox
5252
### use the demo script
5353

5454
```SHELL
55-
pdm run scripts/demonstrator.py
56-
pdm run scripts/demonstrator.py -v -i 2
55+
pdm run examples/demonstrator.py
56+
pdm run examples/demonstrator.py -v -i 2
5757
```

0 commit comments

Comments
 (0)