Skip to content

Commit 5891e3d

Browse files
committed
First commit
0 parents  commit 5891e3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2318
-0
lines changed

.bumpversion.cfg

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[bumpversion]
2+
current_version = 0.0.1
3+
commit = True
4+
tag = True
5+
tag_name = {new_version}
6+
7+
[bumpversion:file:src/zorg/__init__.py]
8+
search = __version__ = "{current_version}"
9+
replace = __version__ = "{new_version}"
10+
11+
[bumpversion:file:setup.py]
12+
search = : "{current_version}"
13+
replace = : "{new_version}"

.codecov.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
codecov:
2+
branch: master
3+
notify:
4+
require_ci_to_pass: true
5+
6+
ignore:
7+
- "tests/*"
8+
9+
coverage:
10+
precision: 2
11+
round: nearest
12+
range: "70...100"
13+
14+
status:
15+
project: true
16+
patch: false
17+
changes: true
18+
19+
parsers:
20+
gcov:
21+
branch_detection:
22+
conditional: true
23+
loop: true
24+
method: false
25+
macro: false
26+
27+
comment:
28+
layout: "header, diff"
29+
behavior: default
30+
require_changes: false

.cruft.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"template": "https://github.com/python-boltons/cc-python",
3+
"commit": "0e7235f0fd512a44d9a9c423183aa15fb7c3c2c9",
4+
"checkout": null,
5+
"context": {
6+
"cookiecutter": {
7+
"author": "Bryan M Bugyi",
8+
"email": "[email protected]",
9+
"github_username": "bbugyi200",
10+
"git_org_name": "bbugyi200",
11+
"git_repo_name": "zorg",
12+
"package_name": "zorg",
13+
"pypi_package_name": "zettel-org",
14+
"read_the_docs_domain": "zettel-org",
15+
"package_description": "The zettel note manager of the future.",
16+
"package_type": "application",
17+
"_template": "https://github.com/python-boltons/cc-python",
18+
"package_path": "zorg",
19+
"package_module": "zorg"
20+
}
21+
},
22+
"directory": null
23+
}

.dockerignore

Whitespace-only changes.

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @bbugyi200

.github/ISSUE_TEMPLATE/bug.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: "Bug Report"
3+
about: Something isn't working as expected.
4+
title: ''
5+
labels: "Type: Bug"
6+
assignees: ''
7+
8+
---

.github/ISSUE_TEMPLATE/ci.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: "Continuous Integration"
3+
about: Related to this project's CI pipeline.
4+
title: ''
5+
labels: "Type: CI"
6+
assignees: ''
7+
8+
---

.github/ISSUE_TEMPLATE/docs.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: "Documentation"
3+
about: Improvements or additions to this project's documentation.
4+
title: ''
5+
labels: "Type: Documentation"
6+
assignees: ''
7+
8+
---

.github/ISSUE_TEMPLATE/feature.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: "Feature"
3+
about: New feature or request.
4+
title: ''
5+
labels: "Type: Feature"
6+
assignees: ''
7+
8+
---

.github/ISSUE_TEMPLATE/misc.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: "Miscellaneous"
3+
about: None of the other issue types work.
4+
title: ''
5+
labels: "Type: Miscellaneous"
6+
assignees: ''
7+
8+
---

.github/ISSUE_TEMPLATE/question.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: "Question"
3+
about: Ask a question about the project.
4+
title: ''
5+
labels: "Type: Question"
6+
assignees: ''
7+
8+
---

.github/ISSUE_TEMPLATE/refactor.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: "Refactor"
3+
about: Cleanup the project without changing behavior.
4+
title: ''
5+
labels: "Type: Refactor"
6+
assignees: ''
7+
8+
---

.github/ISSUE_TEMPLATE/security.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: "Security"
3+
about: A security vulnerability has been discovered.
4+
title: ''
5+
labels: "Type: Security"
6+
assignees: ''
7+
8+
---

.github/ISSUE_TEMPLATE/tests.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: "Tests"
3+
about: Improvements or additions to this project's test suite.
4+
title: ''
5+
labels: "Type: Tests"
6+
assignees: ''
7+
8+
---

.github/labels.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
- name: "Type: Bug"
2+
color: "ee0701"
3+
description: "Something isn't working as expected."
4+
5+
- name: "Type: CI"
6+
color: "5319e7"
7+
description: "Related to this project's continuous integration pipeline."
8+
9+
- name: "Type: Documentation"
10+
color: "f9d0c4"
11+
description: "Improvements or additions to this project's documentation."
12+
13+
- name: "Type: Feature"
14+
color: "1d76db"
15+
description: "New feature or request."
16+
17+
- name: "Type: Miscellaneous"
18+
color: "fbca04"
19+
description: "None of the other type labels work."
20+
21+
- name: "Type: Question"
22+
color: "d530b2"
23+
description: "Ask a question about the project."
24+
25+
- name: "Type: Refactor"
26+
color: "d13a76"
27+
description: "Cleanup the project without changing behavior."
28+
29+
- name: "Type: Security"
30+
color: "000000"
31+
description: "A security vulnerability has been discovered."
32+
33+
- name: "Type: Tests"
34+
color: "74ff49"
35+
description: "Improvements or additions to this project's test suite."

.github/workflows/ci.yml

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: CI
2+
on: # yamllint disable-line rule:truthy
3+
push:
4+
pull_request:
5+
env:
6+
USE_DOCKER: true
7+
jobs:
8+
test:
9+
runs-on: ["${{ matrix.os }}"]
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest]
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v2
21+
22+
- name: Install Dependencies
23+
run: |
24+
python -m pip install -U pip docker-compose
25+
26+
- name: Unit tests
27+
run: |
28+
make test
29+
30+
- name: Publish coverage to codecov.io.
31+
uses: codecov/codecov-action@v2
32+
if: ${{ !env.ACT }}
33+
with:
34+
fail_ci_if_error: true
35+
files: ./coverage.xml
36+
verbose: true
37+
lint:
38+
runs-on: [ubuntu-latest]
39+
steps:
40+
- uses: actions/checkout@v2
41+
42+
- name: Set up Python
43+
uses: actions/setup-python@v2
44+
45+
- name: Install Dependencies
46+
run: |
47+
python -m pip install -U pip docker-compose
48+
49+
- name: Run linters.
50+
run: |
51+
make lint
52+
check_cc_and_requirements:
53+
runs-on: [ubuntu-latest]
54+
steps:
55+
- uses: actions/checkout@v2
56+
57+
- name: Set up Python
58+
uses: actions/setup-python@v2
59+
60+
- name: Check that requirements are up-to-date.
61+
if: github.ref != 'refs/heads/master' && ! startsWith(github.ref, 'refs/tags')
62+
run: |
63+
make check-requirements
64+
65+
- name: Check that this project is up-to-date with cookiecutter.
66+
if: github.ref != 'refs/heads/master' && ! startsWith(github.ref, 'refs/tags')
67+
run: |
68+
make check-cc
69+
publish:
70+
runs-on: [ubuntu-latest]
71+
needs:
72+
- test
73+
- lint
74+
steps:
75+
- uses: actions/checkout@v2
76+
with:
77+
fetch-depth: 0
78+
79+
- name: Set up Python
80+
uses: actions/setup-python@v2
81+
- name: Install pypa/build
82+
run: |
83+
python -m pip install --user build setuptools_scm
84+
85+
- name: Build a binary wheel and a source tarball
86+
run: |
87+
python -m build --sdist --wheel --outdir dist/
88+
89+
- name: Build wheels
90+
run: |
91+
python setup.py sdist
92+
93+
- name: Build docs and publish them back to the master branch if necessary.
94+
if: github.repository == 'bbugyi200/zorg' && github.ref == 'refs/heads/master'
95+
run: |
96+
./bin/publish_docs
97+
98+
- name: Publish distribution to PyPI
99+
if: github.repository == 'bbugyi200/zorg' && startsWith(github.ref, 'refs/tags')
100+
uses: pypa/gh-action-pypi-publish@master
101+
with:
102+
password: ${{ secrets.PYPI_API_TOKEN }}
103+
skip_existing: true

.github/workflows/labeler.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Labeler
2+
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
labeler:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out the repository
13+
uses: actions/[email protected]
14+
15+
- name: Run Labeler
16+
uses: crazy-max/[email protected]
17+
with:
18+
skip-delete: false

0 commit comments

Comments
 (0)