Skip to content

Commit 5acc818

Browse files
committed
feat: initial version for template
0 parents  commit 5acc818

17 files changed

Lines changed: 1839 additions & 0 deletions

.commitlintrc.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
extends:
3+
- '@commitlint/config-conventional'
4+
rules:
5+
header-max-length: [1, 'always', 72]
6+
subject-case: [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']]
7+
body-leading-blank: [1, 'always']
8+
type-enum:
9+
- 2
10+
- always
11+
- - build
12+
- chore
13+
- ci
14+
- feat
15+
- fix
16+
- docs
17+
- style
18+
- refactor
19+
- perf
20+
- test
21+
- revert
22+
help: |
23+
**Possible types**:
24+
`build`: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm, pip)
25+
`chore`: Other changes that don't modify src or test files
26+
`ci`: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
27+
`feat`: Adds a new feature.
28+
`fix`: Solves a bug.
29+
`docs`: Adds or alters documentation.
30+
`style`: Improves formatting, white-space.
31+
`refactor`: Rewrites code without feature, performance or bug changes.
32+
`perf`: Improves performance.
33+
`test`: Adds or modifies tests.
34+
`revert`: Changes that reverting other changes

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
max_line_length = 0
14+
indent_style = space
15+
trim_trailing_whitespace = false
16+
17+
# 4 tab indentation
18+
[{Makefile,*.mk}]
19+
indent_style = tab
20+
indent_size = 4
21+
22+
[*.py]
23+
indent_size = 4

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
commit-message:
8+
prefix: "chore"
9+
include: "scope"
10+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
commitlint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 0
12+
- uses: wagoid/commitlint-github-action@v4
13+
14+
pythontests:
15+
strategy:
16+
matrix:
17+
python-version: ["3.8"]
18+
name: "Python ${{ matrix.python-version }}"
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-python@v2
24+
with:
25+
python-version: "${{ matrix.python-version }}"
26+
- name: Install dependencies on ${{ matrix.python-version }}"
27+
run: |
28+
set -xe
29+
python -m pip install --upgrade pip
30+
pip install -r requirements.txt
31+
pip install -r requirements-dev.txt
32+
33+
- name: "Run Black check on ${{ matrix.python-version }}"
34+
run: make check-black
35+
36+
- name: "Run pylint check on ${{ matrix.python-version }}"
37+
run: make pylint
38+
39+
- name: "Run pycodestyle check on ${{ matrix.python-version }}"
40+
run: make pycodestyle
41+
42+
- name: "Run flake8 check on ${{ matrix.python-version }}"
43+
run: make flake8
44+
45+
- name: "Run mypy check on ${{ matrix.python-version }}"
46+
run: make mypy
47+
48+
- name: "Run flake8 check on ${{ matrix.python-version }}"
49+
run: make flake8
50+
51+
shellcheck:
52+
name: Shellcheck
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@v2
56+
- name: Run ShellCheck
57+
uses: ludeeus/action-shellcheck@master
58+
- name: Run Shelltest
59+
run: make shelltest

0 commit comments

Comments
 (0)