Skip to content

Commit

Permalink
chore: update cruft project
Browse files Browse the repository at this point in the history
  • Loading branch information
proofit404 committed Dec 5, 2024
1 parent fbcd06c commit 0754046
Show file tree
Hide file tree
Showing 48 changed files with 443 additions and 1,122 deletions.
17 changes: 2 additions & 15 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
[run]
source = .
branch = true
parallel = true
disable_warnings =
module-not-imported
source =
_stories
stories
aioapp
app
configuration
examples
mddoctest
validators
tests

[paths]
source =
src
.tox/*/site-packages

[report]
exclude_lines =
pragma: no cover
raise RuntimeError
return NotImplemented
21 changes: 8 additions & 13 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
{
"template": "https://github.com/proofit404/python-library-template",
"commit": "41476f18af4abbfe83e06539c8ab67db264a6d81",
"commit": "f3f7fcda5c70a92f3d77893ca09efb4fefab0aa5",
"checkout": null,
"context": {
"cookiecutter": {
"is_private": false,
"project_name": "stories",
"public_module_name": "stories",
"private_module_name": "_stories",
"exception_name": "StoryError",
"__module_name": "stories",
"project_description": "Service objects designed with OOP in mind.",
"author_name": "Josiah Kaviani",
"author_email": "[email protected]",
"github_user": "proofit404",
"github_repository": "https://github.com/proofit404/stories",
"issues_url": "https://github.com/proofit404/stories/issues",
"documentation_url": "https://proofit404.github.io/stories",
"changelog_url": "https://proofit404.github.io/stories/changelog",
"__github_repository": "https://github.com/proofit404/stories",
"__issues_url": "https://github.com/proofit404/stories/issues",
"__documentation_url": "https://proofit404.github.io/stories",
"__changelog_url": "https://proofit404.github.io/stories/changelog",
"twitter_url": "https://twitter.com/proofit404",
"pypi_project": "https://pypi.org/project/stories",
"github_workflow": "release",
"github_workflow_url": "https://github.com/proofit404/stories/actions/workflows/release.yml?query=branch%3Arelease",
"github_workflow_badge_url": "https://img.shields.io/github/workflow/status/proofit404/stories/release?style=flat-square",
"pypi_badge_url": "https://img.shields.io/pypi/v/stories?style=flat-square",
"__pypi_project": "https://pypi.org/project/stories",
"danger_github_api_token": "Z2hwXzNOVkx3ZHBKbVNFWWttOUdjT2VTSmxpcWkxa3NJNTJDNTB4RAo=",
"_template": "https://github.com/proofit404/python-library-template"
}
Expand Down
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*.yml]
max_line_length = 100
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc.yml

This file was deleted.

19 changes: 1 addition & 18 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
[flake8]
max-line-length = 88
eradicate-aggressive = true
ban-relative-imports = true
ignore = D105, D107, E741, W503
per-file-ignores =
src/_stories/*.py: D100, D104
testing/*.py: D100, D104
exclude =
.coverage
.coverage.*
.mutmut-cache
.pytest_cache/
.tox/
__pycache__/
dist/
htmlcov/
node_modules/
package-lock.json
site/
venv/
pytest-fixture-no-parentheses = false
35 changes: 35 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: pipeline
"on":
push:
branches:
- release
pull_request:
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: release
fetch-depth: 0
- run: |
git checkout $GITHUB_HEAD_REF
- uses: actions/setup-python@v5
with:
python-version: 3.12.3
- uses: actions/setup-node@v4
with:
node-version: 22.6.0
- run: ./scripts/install
- run: ./scripts/check
- run: ./scripts/test
- run: ./scripts/review
if: ${{ github.event_name == 'pull_request' }}
env:
DANGER_GITHUB_API_TOKEN: Z2hwXzNOVkx3ZHBKbVNFWWttOUdjT2VTSmxpcWkxa3NJNTJDNTB4RAo=
- run: ./scripts/release
if: ${{ github.ref == 'refs/heads/release' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
37 changes: 0 additions & 37 deletions .github/workflows/pull_request.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.coverage
.coverage.*
.mutmut-cache
.pytest_cache/
.tox/
__pycache__/
dist/
htmlcov/
Expand Down
9 changes: 0 additions & 9 deletions .importlinter

This file was deleted.

Loading

0 comments on commit 0754046

Please sign in to comment.