-
Notifications
You must be signed in to change notification settings - Fork 12
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 #165 from k4cg/2.0-dev
2.0
- Loading branch information
Showing
142 changed files
with
5,019 additions
and
3,174 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,45 @@ | ||
# .coveragerc to control coverage.py | ||
|
||
[run] | ||
|
||
data_file = .coverage | ||
branch = True | ||
|
||
source = | ||
nichtparasoup | ||
|
||
omit = | ||
# Don't complain if non-runnable code isn't run: | ||
*/__main__.py | ||
|
||
|
||
[paths] | ||
|
||
source = | ||
./nichtparasoup | ||
.tox/*/lib/python*/site-packages/nichtparasoup | ||
.tox/pypy/site-packages/nichtparasoup | ||
|
||
|
||
[report] | ||
|
||
# TODO set proper value | ||
fail_under = 0 | ||
|
||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
\#\s*pragma: no cover | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
^if __name__ == ['"]__main__['"]:$ | ||
^\s*if False: | ||
[html] | ||
directory = htmlcov | ||
[xml] | ||
output = coverage.xml |
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 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,16 @@ | ||
[flake8] | ||
|
||
show-source = True | ||
|
||
# ignore self markers of https://github.com/python-discord/flake8-annotations | ||
ignore = TYP101,TYP102 | ||
|
||
exclude = .git,__pycache__,_OLD,_TEST,build,dist,.tox,*_cache,.eggs | ||
setup.py | ||
docs | ||
|
||
max-complexity = 5 | ||
|
||
# allow up to 119 characters as this is the width of GitHub code review | ||
max-line-length = 119 | ||
|
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,52 @@ | ||
name: "Test & Build" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
test: | ||
name: Testing | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest'] | ||
pyhon: ['3.5', '3.6', '3.7', '3.8'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.pyhon_version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.pyhon }} | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install --upgrade setuptools tox | ||
- name: Test with tox | ||
run: | | ||
python3 -m tox | ||
publish: | ||
name: Publishing | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install --upgrade setuptools setuptools_scm wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: "__token__" | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload 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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
[isort] | ||
## read the docs: https://github.com/timothycrosley/isort/wiki/isort-Settings | ||
# config shamelessly plugged from django | ||
combine_as_imports = true | ||
default_section = THIRDPARTY | ||
include_trailing_comma = true | ||
known_first_party = nichtparasoup | ||
line_length = 119 | ||
multi_line_output = 5 |
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,53 @@ | ||
## not using travisCI for this project anymore | ||
## switched to github actions | ||
|
||
version: ~> 1.0 | ||
|
||
os: "linux" | ||
dist: "xenial" | ||
|
||
language: "python" | ||
|
||
cache: "pip" | ||
|
||
install: | ||
- "python3 -m pip install --upgrade pip setuptools" | ||
- "python3 -m pip install --upgrade tox" | ||
|
||
script: "python3 -m tox" | ||
|
||
stages: | ||
- name: "Testing" | ||
- name: "Publishing" | ||
if: "tag IS present" | ||
|
||
jobs: | ||
include: | ||
- stage: "Testing" | ||
dist: "trusty" | ||
python: "3.5" | ||
env: "TOXENV=py35-codecov" | ||
- stage: "Testing" | ||
python: "3.6" | ||
env: "TOXENV=py36-codecov" | ||
- stage: "Testing" | ||
python: "3.7" | ||
env: "TOXENV=py37-codecov" | ||
- stage: "Testing" | ||
python: "3.8" | ||
env: "TOXENV=py38-codecov" | ||
- stage: "Publishing" | ||
name: "PYPI" | ||
install: | ||
- "python3 -m pip install --upgrade pip setuptools" | ||
- "python3 -m pip install --upgrade twine wheel" | ||
script: skip | ||
deploy: | ||
provider: "pypi" | ||
username: "__token__" | ||
password: | ||
secure: "TODO" | ||
distributions: "sdist bdist_wheel" | ||
on: | ||
branch: master | ||
tags: true |
Oops, something went wrong.