-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from sb-ai-lab/dev/CICD
Added CI/CD Code checks: black flake8 mypy darglint pre-commit rstcheck isort CD: autotest in all platforms after push\merge in master or dev/master Issue templates
- Loading branch information
Showing
43 changed files
with
282 additions
and
4,068 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
ignore = E203, E266, E501, W503 | ||
exclude = .venv, .git, __pycache__, build, dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Bug | ||
about: Create a bug report | ||
title: '' | ||
labels: bug | ||
assignees: | ||
|
||
--- | ||
|
||
## 🐛 Bug | ||
|
||
<!-- A clear and concise description of the bug. --> | ||
|
||
### To Reproduce | ||
|
||
Steps to reproduce the behavior: | ||
|
||
1. Go to '...' | ||
2. Run '....' | ||
3. ... | ||
|
||
<!-- If you have a code sample, error messages, stack traces, please provide it here as well --> | ||
|
||
### Expected behavior | ||
|
||
<!-- A clear and concise description of what you expected to happen. --> | ||
|
||
### Additional context | ||
|
||
<!-- Add any other context about the problem here. --> | ||
|
||
### Checklist | ||
|
||
- [ ] bug description | ||
- [ ] steps to reproduce | ||
- [ ] expected behavior | ||
- [ ] code sample / screenshots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest a feature to implement | ||
title: '' | ||
labels: enhancement | ||
assignees: | ||
|
||
--- | ||
|
||
## 🚀 Feature Request | ||
|
||
<!-- A clear and concise description of the feature proposal. --> | ||
|
||
### Motivation | ||
|
||
<!-- Please outline the motivation for the proposal. If this is related to another GitHub issue, please link here too --> | ||
|
||
### Proposal | ||
|
||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
### Alternatives | ||
|
||
<!-- 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. --> | ||
|
||
### Checklist | ||
|
||
- [ ] feature proposal description | ||
- [ ] motivation | ||
- [ ] additional context / proposal alternatives review |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: How to question | ||
about: Asking how-to questions | ||
title: '' | ||
labels: help wanted, question | ||
assignees: | ||
--- | ||
|
||
## ❓ Questions and Help | ||
|
||
### Before asking: | ||
|
||
1. search the issues. | ||
2. search the docs. | ||
|
||
#### What is your question? | ||
|
||
#### Code | ||
|
||
<!-- Please paste a code snippet if your question requires it! --> | ||
|
||
#### What have you tried? | ||
|
||
### Additional context | ||
|
||
<!-- Add any other context about the problem here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: [ master, dev/master ] | ||
paths-ignore: | ||
- "docs/**" | ||
- "*.md" | ||
pull_request: | ||
branches: [ master, dev/master ] | ||
paths-ignore: | ||
- "docs/**" | ||
- "*.md" | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: [ 3.8, 3.9, 3.10.10 ] | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install | ||
- name: Run pre-commit checks | ||
run: poetry run pre-commit run --all-files | ||
- name: Run tests | ||
run: poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.11.0 | ||
hooks: | ||
- id: black | ||
language_version: python3.10 | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
language_version: python3.10 | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.7.0 | ||
hooks: | ||
- id: mypy | ||
language_version: python3.10 | ||
|
||
- repo: https://github.com/terrencepreilly/darglint | ||
rev: v1.8.1 | ||
hooks: | ||
- id: darglint | ||
language_version: python3.10 | ||
|
||
|
||
- repo: https://github.com/myint/rstcheck | ||
rev: v6.2.0 | ||
hooks: | ||
- id: rstcheck | ||
language_version: python3.10 | ||
exclude: ^docs/_templates/ | ||
|
||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v5.10.1 | ||
hooks: | ||
- id: isort | ||
language_version: python3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ formats: all | |
python: | ||
install: | ||
- requirements: docs/requirements.txt | ||
- path: . | ||
- path: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.