Skip to content

Commit

Permalink
pref: optimize workflow and makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Undertone0809 committed Oct 11, 2023
1 parent 720bc55 commit 5ae2c3f
Show file tree
Hide file tree
Showing 12 changed files with 1,364 additions and 837 deletions.
2 changes: 1 addition & 1 deletion .github/.stale.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
daysUntilStale: 90
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
Expand Down
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

14 changes: 12 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ updates:
- dependency-type: "all"
commit-message:
prefix: ":arrow_up:"
open-pull-requests-limit: 50
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
Expand All @@ -22,4 +22,14 @@ updates:
- dependency-type: "all"
commit-message:
prefix: ":arrow_up:"
open-pull-requests-limit: 50
open-pull-requests-limit: 10

- package-ecosystem: "docker"
directory: "/docker"
schedule:
interval: "weekly"
allow:
- dependency-type: "all"
commit-message:
prefix: ":arrow_up:"
open-pull-requests-limit: 10
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.9"]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.7.1
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -36,7 +36,3 @@ jobs:
- name: Run tests
run: |
make test
- name: Run safety checks
run: |
make check-safety
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ PYTHONPATH := `pwd`
#* Poetry
.PHONY: poetry-download
poetry-download:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | $(PYTHON) -
pip install poetry

.PHONY: poetry-remove
poetry-remove:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | $(PYTHON) - --uninstall
pip uninstall poetry

#* Installation
.PHONY: install
Expand Down Expand Up @@ -60,7 +60,7 @@ lint: test check-codestyle mypy check-safety

.PHONY: update-dev-deps
update-dev-deps:
poetry add -D bandit@latest darglint@latest "isort[colors]@latest" mypy@latest pre-commit@latest pydocstyle@latest pylint@latest pytest@latest pyupgrade@latest safety@latest coverage@latest coverage-badge@latest pytest-html@latest pytest-cov@latest
poetry add -D bandit@latest darglint@latest "isort[colors]@latest" mypy@latest pre-commit@latest pydocstyle@latest pylint@latest pytest@latest pyupgrade@latest safety@latest
poetry add -D --allow-prereleases black@latest

#* Cleaning
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@
Your next Python package needs a bleeding-edge project structure.
</div>

> This version is branch of [https://github.com/TezRomacH/python-package-template](https://github.com/TezRomacH/python-package-template). The author TezRomacH no longer maintains it, this branch has been created for continuous maintenance.
### What are the differences between TezRomacH/python-package-template?

In order to improve system compatibility and sustainability, there are some plans in this repo.

- Window compatibility: Improving compatibility with windows in makefiles.
- New packages features: The latest features of docking related packages.
- Package Management: Provide more solutions for Python package version management to improve the compatibility of different python version.

## TL;DR

```bash
cookiecutter gh:Undertone0809/python-package-template --checkout v1.1.1
cookiecutter gh:Undertone0809/python-package-template --checkout v0.1.0
```

> All you need is the latest version of cookiecutter 😉
Expand Down
Loading

0 comments on commit 5ae2c3f

Please sign in to comment.