Skip to content

Commit 7c91aae

Browse files
authored
Merge pull request #3 from lestex/add-pre-commit
adds pre-commit config
2 parents dffaaeb + 3e7029b commit 7c91aae

File tree

4 files changed

+65
-1
lines changed

4 files changed

+65
-1
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
# GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
commit-message:
9+
prefix:
10+
# Python
11+
- package-ecosystem: "pip"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
15+
commit-message:
16+
prefix:

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.10"
18+
19+
- name: Build distribution
20+
run: python -m build
21+
22+
- name: Publish
23+
uses: pypa/[email protected]
24+
with:
25+
password: ${{ secrets.PYPI_API_TOKEN }}

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.3.0
6+
hooks:
7+
- id: check-added-large-files
8+
- id: check-toml
9+
- id: check-yaml
10+
args:
11+
- --unsafe
12+
- id: end-of-file-fixer
13+
- id: trailing-whitespace
14+
- repo: https://github.com/pycqa/isort
15+
rev: 5.11.4
16+
hooks:
17+
- id: isort
18+
name: isort
19+
- repo: https://github.com/grantjenks/blue
20+
rev: v0.9.1
21+
hooks:
22+
- id: blue
23+
name: blue

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ help:
3434
{printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
3535

3636
tag: ## create and push a tag for the current version
37-
echo $(VERSION_PYSCRIPT)
37+
echo $(TAG)
3838
# git tag $(TAG)
3939
# git push origin $(TAG)
4040

0 commit comments

Comments
 (0)