Skip to content

Commit

Permalink
chore: update project structure to 0a3ffcfa
Browse files Browse the repository at this point in the history
  • Loading branch information
escaped committed Jan 5, 2021
1 parent 2b02d08 commit 88e18de
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/escaped/cookiecutter-pypackage.git",
"commit": "a20d0309738174fd9c5e9d10a03c1d9d5e610bbb",
"commit": "0a3ffcfa9a93a2e59037b38e605250b919064030",
"context": {
"cookiecutter": {
"author": "Alexander Frenzel",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
draft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }}

publish:
needs: [release]
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
max-parallel: 4
matrix:
platform: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
python-version: 3.8.5

- name: Install dependencies
run: pip install cruft jello
run: pip install cruft poetry jello

- name: Update project structure
run: cruft update -y
run: |
cruft update -y
poetry lock --no-update # add new dependencies
poetry run pre-commit run -a
- name: Get new template version
# extract new cooiecutter template version
Expand Down
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ repos:
language: system
entry: poetry run black
types: [python]

- repo: local
hooks:
- id: autoflake
name: autoflake
language: system
entry: poetry run autoflake --expand-star-imports --remove-all-unused-imports --remove-unused-variables --in-place --recursive tests/ networkx_astar_path/
types: [python]

- repo: local
hooks:
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,3 @@ cruft update
```

in the root of this repository.

15 changes: 15 additions & 0 deletions README.md.rej
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff a/README.md b/README.md (rejected hunks)
@@ -11,8 +11,12 @@ Alternative A* implementation, which provides the current and previous edge to t
## Requirements

* Python 3.6.1 or newer
-* [poetry](https://poetry.eustance.io/) 1.1 or newer

+## Installation
+
+```sh
+pip install networkx-astar-path
+```

## Development

12 changes: 12 additions & 0 deletions pyproject.toml.rej
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff a/pyproject.toml b/pyproject.toml (rejected hunks)
@@ -38,8 +38,10 @@ python = ">=3.6.1, <4.0"


[tool.poetry.dev-dependencies]
+autoflake = "^1.4"
black = "^20.8b1"
flake8 = "^3.8.3"
+flake8-bugbear = "^20.11.1"
isort = "^5.5.2"
mypy = "^0.782"
pre-commit = "^2.7.1"
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39

[tox]
skipsdist = True
Expand All @@ -11,6 +12,7 @@ envlist =
py36
py37
py38
py39

[testenv]
skip_install = True
Expand Down

0 comments on commit 88e18de

Please sign in to comment.