-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the project skeleton files (no useful content)
Signed-off-by: Sergey Vasilyev <[email protected]>
- Loading branch information
Showing
20 changed files
with
425 additions
and
0 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 @@ | ||
comment: off |
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,2 @@ | ||
# Who is automatically assigned to the new PRs based on their content. | ||
* @nolar |
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 @@ | ||
github: nolar |
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,9 @@ | ||
## Long story short | ||
|
||
<!-- Please describe the issue in 1-3 sentences. --> | ||
|
||
|
||
## Description | ||
|
||
<!-- Please provide as much information as possible. | ||
Lack of information may result in a delayed response. Thank you! --> |
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,15 @@ | ||
<!-- | ||
Thank you for contributing! Please make sure that your code changes | ||
are covered with tests. And in case of new features or big changes | ||
remember to adjust the documentation. | ||
Feel free to ping maintainers for the review! | ||
In case of existing issue, reference it using one of the following: | ||
closes: #ISSUE | ||
related: #ISSUE | ||
How to write a good git commit message: | ||
http://chris.beams.io/posts/git-commit/ | ||
--> |
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,86 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- release/** | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
linters: | ||
name: Linting and static analysis | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- run: pip install -r requirements.txt | ||
- run: pre-commit run --all-files | ||
- run: mypy pytest_instant --strict | ||
|
||
unit-tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.7", "3.8", "3.9", "3.10" ] | ||
name: Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- run: pip install -r requirements.txt | ||
- run: pip install -e . | ||
- run: pytest --color=yes --cov=pytest_instant --cov-branch | ||
|
||
- name: Publish coverage to Coveralls.io | ||
if: success() | ||
run: coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
continue-on-error: true | ||
- name: Publish coverage to CodeCov.io | ||
uses: codecov/codecov-action@v1 | ||
if: success() | ||
env: | ||
PYTHON: ${{ matrix.python-version }} | ||
with: | ||
flags: unit | ||
env_vars: PYTHON | ||
continue-on-error: true | ||
|
||
# No coverage: PyPy performs extremely poorly with tracing/coverage. | ||
pypy-tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "pypy-3.7", "pypy-3.8" ] | ||
name: Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- run: pip install -r requirements.txt | ||
- run: pip install -e . | ||
- run: pytest --color=yes --no-cov | ||
|
||
coveralls-finish: | ||
name: Finalize coveralls.io | ||
needs: [unit-tests] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-python@v2 | ||
- run: pip install coveralls | ||
- run: coveralls --service=github --finish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
continue-on-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,26 @@ | ||
name: Publish to PyPI | ||
on: | ||
release: | ||
types: | ||
- published | ||
# push: | ||
# tags: | ||
# - "[0-9]+.[0-9]+*" | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
publish: | ||
name: Build and publish | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- run: pip install --upgrade setuptools wheel twine | ||
- run: python setup.py sdist bdist_wheel | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_token }} | ||
skip_existing: 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,88 @@ | ||
name: Thorough tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
schedule: | ||
- cron: "13 3 * * 6" | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
linters: | ||
name: Linting and static analysis | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- run: pip install -r requirements.txt | ||
- run: pre-commit run --all-files | ||
- run: mypy pytest_instant --strict | ||
|
||
unit-tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.7", "3.8", "3.9", "3.10" ] | ||
name: Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- run: pip install -r requirements.txt | ||
- run: pip install -e . | ||
- run: pytest --color=yes --cov=pytest_instant --cov-branch | ||
|
||
- name: Publish coverage to Coveralls.io | ||
if: success() | ||
run: coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
continue-on-error: true | ||
- name: Publish coverage to CodeCov.io | ||
uses: codecov/codecov-action@v1 | ||
if: success() | ||
env: | ||
PYTHON: ${{ matrix.python-version }} | ||
with: | ||
flags: unit | ||
env_vars: PYTHON | ||
continue-on-error: true | ||
|
||
# No coverage: PyPy performs extremely poorly with tracing/coverage. | ||
pypy-tests: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "pypy-3.7", "pypy-3.8" ] | ||
name: Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- run: pip install -r requirements.txt | ||
- run: pip install -e . | ||
- run: pytest --color=yes --no-cov | ||
|
||
coveralls-finish: | ||
name: Finalize coveralls.io | ||
needs: [unit-tests] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-python@v2 | ||
- run: pip install coveralls | ||
- run: coveralls --service=github --finish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
continue-on-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,34 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# Distribution / packaging | ||
build/ | ||
dist/ | ||
.eggs/ | ||
*.egg-info/ | ||
*.egg | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
.pytest_cache | ||
nosetests.xml | ||
coverage.xml | ||
junit.xml | ||
*.cover | ||
.hypothesis/ | ||
.mypy_cache | ||
|
||
# Documentation | ||
docs/_build | ||
docs/packages | ||
|
||
# VirtualEnv | ||
env | ||
|
||
# VSCode | ||
.vscode |
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,6 @@ | ||
[settings] | ||
line_length = 100 | ||
multi_line_output = 11 | ||
balanced_wrapping = true | ||
combine_as_imports = true | ||
case_sensitive = 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,65 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
exclude: | | ||
(?x)^( | ||
docs/.*\.xml| | ||
docs/.*\.png | ||
) | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: | ||
- id: check-ast | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
- id: check-xml | ||
- id: check-toml | ||
- id: check-yaml | ||
args: [--allow-multiple-documents] | ||
- id: check-json | ||
- id: pretty-format-json | ||
- id: check-added-large-files | ||
- id: check-builtin-literals | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-vcs-permalinks | ||
- id: check-docstring-first | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: destroyed-symlinks | ||
- id: debug-statements | ||
- id: detect-aws-credentials | ||
args: [--allow-missing-credentials] | ||
- id: detect-private-key | ||
exclude: ^tests/authentication/test_credentials.py$ | ||
- id: fix-encoding-pragma | ||
args: [--remove] | ||
- id: forbid-new-submodules | ||
- id: mixed-line-ending | ||
args: [--fix=auto] | ||
- id: name-tests-test | ||
args: [--django] | ||
- id: requirements-txt-fixer | ||
|
||
# Intentionally disabled: | ||
# - id: double-quote-string-fixer | ||
|
||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.8.0 | ||
hooks: | ||
- id: python-check-blanket-noqa | ||
- id: python-check-mock-methods | ||
- id: python-no-eval | ||
- id: python-no-log-warn | ||
- id: python-use-type-annotations | ||
- id: rst-backticks | ||
- id: rst-directive-colons | ||
- id: rst-inline-touching-normal | ||
- id: text-unicode-replacement-char | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.8.0 | ||
hooks: | ||
- id: isort | ||
name: isort-source-code |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Sergey Vasilyev <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 @@ | ||
Sergey Vasilyev <[email protected]> |
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,8 @@ | ||
# Fast-forward asyncio event loop time (in tests) | ||
|
||
[![CI](https://github.com/nolar/looptime/workflows/Thorough%20tests/badge.svg)](https://github.com/nolar/looptime/actions/workflows/thorough.yaml) | ||
[![codecov](https://codecov.io/gh/nolar/looptime/branch/main/graph/badge.svg)](https://codecov.io/gh/nolar/looptime) | ||
[![Coverage Status](https://coveralls.io/repos/github/nolar/looptime/badge.svg?branch=main)](https://coveralls.io/github/nolar/looptime?branch=main) | ||
[![Total alerts](https://img.shields.io/lgtm/alerts/g/nolar/looptime.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/nolar/looptime/alerts/) | ||
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/nolar/looptime.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/nolar/looptime/context:python) | ||
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) |
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 @@ | ||
In case you detect any security issues, contact [email protected]. |
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 @@ | ||
[mypy] | ||
warn_unused_configs = True | ||
ignore_missing_imports = True |
Empty file.
Empty file.
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,15 @@ | ||
# Everything needed to develop (test, debug) the framework. | ||
# The runtime dependencies of the framework, as if via `pip install kopf`. | ||
-e . | ||
async-timeout | ||
codecov | ||
coverage | ||
coveralls | ||
isort | ||
pre-commit | ||
pytest | ||
pytest-asyncio | ||
pytest-cov | ||
pytest-mock | ||
# Mypy requires typed-ast, which is broken on PyPy 3.7 (could work in PyPy 3.8). | ||
mypy==0.910; implementation_name == "cpython" |
Oops, something went wrong.