-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/pip/pillow-9.3.0
- Loading branch information
Showing
169 changed files
with
24,395 additions
and
6,810 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,13 @@ | ||
[run] | ||
source = pyreduce | ||
omit = | ||
pyreduce/_version.py | ||
examples/* | ||
versioneer.py | ||
setup.py | ||
|
||
[report] | ||
show_missing = True | ||
|
||
[xml] | ||
output = cov.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
max-complexity = 18 | ||
# select = B,C,E,F,W,T4,B9 | ||
ignore = E203, E266, E501, W503, F403, F401 | ||
select = E9,F63,F7,F82 |
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 @@ | ||
pyreduce/_version.py export-subst |
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,99 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Python application | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
pip install . | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
run: pytest | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
if: github.event_name == 'push' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: GitHub Tag | ||
id: tag_release | ||
uses: mathieudutour/github-tag-action@v5 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ steps.tag_release.outputs.new_tag }} | ||
clean: true | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Build Wheel | ||
run: pip install wheel && python setup.py sdist | ||
|
||
- name: Zip data | ||
id: zip_data | ||
run: | | ||
zip -r dist dist && | ||
echo "::set-output name=filename::dist.zip" | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ steps.tag_release.outputs.new_tag }} | ||
release_name: Release ${{ steps.tag_release.outputs.new_tag }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./dist.zip | ||
asset_name: dist.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_password }} |
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
# Identify invalid files | ||
- id: check-ast | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
# git checks | ||
- id: check-merge-conflict | ||
- id: check-added-large-files | ||
- id: detect-private-key | ||
- id: check-case-conflict | ||
# Python checks | ||
- id: check-docstring-first | ||
- id: debug-statements | ||
- id: requirements-txt-fixer | ||
- id: fix-encoding-pragma | ||
- id: fix-byte-order-marker | ||
# General checks | ||
- id: mixed-line-ending | ||
exclude: ".fits" | ||
- id: trailing-whitespace | ||
exclude: ".fits" | ||
# - id: check-executables-have-shebangs | ||
- id: end-of-file-fixer | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.29.0 | ||
hooks: | ||
- id: pyupgrade | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.9.3 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 21.9b0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# autogenerated pyup.io config file | ||
# autogenerated pyup.io config file | ||
# see https://pyup.io/docs/configuration/ for all available options | ||
|
||
schedule: every month |
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,19 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
formats: all | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
python: | ||
version: "3" | ||
install: | ||
- requirements: docs/requirements.txt |
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
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,53 @@ | ||
{ | ||
"@context": [ | ||
"https://doi.org/10.5063/schema/codemeta-2.0", | ||
"http://schema.org", | ||
{ | ||
"entryPoints": { | ||
"@reverse": "schema:actionApplication" | ||
}, | ||
"interfaceType": { | ||
"@id": "codemeta:interfaceType" | ||
}, | ||
"specification": { | ||
"@id": "codemeta:specification", | ||
"@type": "@id" | ||
}, | ||
"mediatorApplication": { | ||
"@id": "codemeta:mediatorApplication", | ||
"@type": "@id" | ||
} | ||
} | ||
], | ||
"@type": "SoftwareSourceCode", | ||
"identifier": "pyreduce-astro", | ||
"name": "pyreduce-astro", | ||
"version": "0.4b2+0.gffea46e.dirty", | ||
"description": "A data reduction package for echelle spectrographs", | ||
"license": "UNKNOWN, OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"author": [{ | ||
"@type": "Person", | ||
"givenName": "Ansgar", | ||
"familyName": "Wehrhahn", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"@type": "Person", | ||
"givenName": "Nikolai", | ||
"familyName": "Piskunov", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"provider": { | ||
"@id": "https://pypi.org", | ||
"@type": "Organization", | ||
"name": "The Python Package Index", | ||
"url": "https://pypi.org" | ||
}, | ||
"runtimePlatform": "Python 3", | ||
"url": "https://github.com/AWehrhahn/PyReduce", | ||
"programmingLanguage": "Python 3", | ||
"operatingSystem": "POSIX :: Linux", | ||
"interfaceType": "LIB", | ||
"contIntegration": "https://travis-ci.org/AWehrhahn/PyReduce" | ||
} |
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
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
Oops, something went wrong.