Skip to content

Commit

Permalink
Initial commit of blender-tools repo
Browse files Browse the repository at this point in the history
  • Loading branch information
moppius committed Dec 4, 2019
0 parents commit c4f7525
Show file tree
Hide file tree
Showing 52 changed files with 3,573 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# https://editorconfig.org

root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

[*.py]
max_line_length = 119

[{*.yaml,*.yml}]
indent_style = space
indent_size = 2
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Device:**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on: [push, pull_request]
name: CI
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
pip install pylint
- name: Lint with pylint
run: |
python -m pylint blender-tools --disable=R,fixme --enable=cyclic-import
- name: Refactoring suggestions
run: |
python -m pylint blender-tools --disable=E,W,C,cyclic-import --enable=fixme --reports=y --exit-zero
release:
name: Release
needs: [lint]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Package
shell: bash
run: |
name=embark_blender_tools
tag=$(git describe --tags --abbrev=0)
release_name="$name-$tag"
release_zip="${release_name}.zip"
mkdir "$name"
cp __init__.py "$name/"
cp -r exporter icons images operators utils "$name/"
cp README.md LICENSE-APACHE LICENSE-MIT "$name/"
zip -r "$release_zip" "$name"
rm -r "$name"
echo -n "$(shasum -ba 256 "${release_zip}" | cut -d " " -f 1)" > "${release_zip}.sha256"
- name: Publish
uses: softprops/action-gh-release@v1
with:
draft: true
files: 'embark_blender_tools*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.ropeproject
*.code-workspace
__pycache__
*.blend
*.blend1
*.pyc
16 changes: 16 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pull_request_rules:
- name: automatic merge when CI passes and 1 reviews
conditions:
- "#approved-reviews-by>=1"
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- "#commented-reviews-by=0"
- base=master
- label!=work-in-progress
actions:
merge:
method: squash
- name: delete head branch after merge
conditions: []
actions:
delete_head_branch: {}
Loading

0 comments on commit c4f7525

Please sign in to comment.