-
Notifications
You must be signed in to change notification settings - Fork 3
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 #1 from grafuls/development
Initial commit
- Loading branch information
Showing
26 changed files
with
2,016 additions
and
14 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,18 @@ | ||
[run] | ||
|
||
branch = true | ||
|
||
data_file = .cache/coverage | ||
|
||
omit = | ||
.venv/* | ||
*/tests/* | ||
*/__main__.py | ||
|
||
[report] | ||
|
||
exclude_lines = | ||
pragma: no cover | ||
raise NotImplementedError | ||
except DistributionNotFound | ||
TYPE_CHECKING |
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,3 @@ | ||
* text=auto | ||
CHANGELOG.md merge=union | ||
poetry.lock merge=binary |
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,43 @@ | ||
name: main | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.11'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: Gr1N/setup-poetry@v8 | ||
|
||
- name: Check dependencies | ||
run: make doctor | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: .venv | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | ||
|
||
- name: Install dependencies | ||
run: make install | ||
|
||
- name: Check code | ||
run: make check | ||
|
||
- name: Test code | ||
run: make test | ||
|
||
- name: Upload coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: true |
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,56 @@ | ||
# Temporary Python files | ||
*.pyc | ||
*.egg-info/ | ||
__pycache__/ | ||
.ipynb_checkpoints/ | ||
setup.py | ||
pip-wheel-metadata/ | ||
|
||
# Temporary OS files | ||
Icon* | ||
|
||
# Temporary virtual environment files | ||
/.cache/ | ||
/.venv/ | ||
tmp/ | ||
|
||
# Temporary server files | ||
.env | ||
*.pid | ||
|
||
# Generated documentation | ||
/docs/gen/ | ||
/docs/apidocs/ | ||
/site/ | ||
/*.html | ||
/docs/*.png | ||
|
||
# Google Drive | ||
*.gdoc | ||
*.gsheet | ||
*.gslides | ||
*.gdraw | ||
|
||
# Testing and coverage results | ||
/.coverage | ||
/.coverage.* | ||
/htmlcov/ | ||
/prof/ | ||
coverage.xml | ||
|
||
# Build and release directories | ||
/build/ | ||
/dist/ | ||
*.spec | ||
|
||
# Sublime Text | ||
*.sublime-workspace | ||
|
||
# Eclipse | ||
.settings | ||
|
||
# VS Code | ||
.vscode | ||
|
||
# poetry | ||
poetry.lock |
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,14 @@ | ||
[pydocstyle] | ||
|
||
# D211: No blank lines allowed before class docstring | ||
add_select = D211 | ||
|
||
# D100: Missing docstring in public module | ||
# D101: Missing docstring in public class | ||
# D102: Missing docstring in public method | ||
# D103: Missing docstring in public function | ||
# D104: Missing docstring in public package | ||
# D105: Missing docstring in magic method | ||
# D107: Missing docstring in __init__ | ||
# D202: No blank lines allowed after function docstring | ||
add_ignore = D100,D101,D102,D103,D104,D105,D107,D202 |
Oops, something went wrong.