Skip to content

Commit

Permalink
uplift to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Aug 9, 2024
1 parent 7cdf66e commit 1a66918
Show file tree
Hide file tree
Showing 11 changed files with 171 additions and 87 deletions.
12 changes: 0 additions & 12 deletions .bumpversion.cfg

This file was deleted.

10 changes: 10 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changes here will be overwritten by Copier
_commit: acb4a69
_src_path: ../../templates/base
add_extension: python
email: [email protected]
github: airflow-laminar
project_description: Supervisor operators and configuration for long-running tasks
project_name: airflow-supervisor
python_version_primary: '3.11'
team: the airflow-supervisor authors
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at t.paine154@gmail.com. All
reported by contacting the project team at [email protected].com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ updates:
directory: "/"
schedule:
interval: "weekly"
labels:
- "part: github_actions"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
labels:
- "lang: python"
- "part: dependencies"
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Build Status

on:
Expand Down Expand Up @@ -30,7 +31,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -59,8 +60,8 @@ jobs:
- name: Test
run: make coverage
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Upload test results
- name: Upload test results (Python)
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
Expand All @@ -76,6 +77,8 @@ jobs:

- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Make dist
run: make dist
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- run: pip install .[develop]
- run: pip install yardang
- run: yardang build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/html
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ __pycache__/

# C extensions
*.so
*.dll

# Distribution / packaging
.Python
Expand Down Expand Up @@ -125,9 +126,12 @@ dmypy.json

# Documentation
docs/_build/
docs/src/_build/
/site
docs/api
docs/index.md
docs/html
index.md
_template/labextension

# Jupyter
Expand All @@ -136,3 +140,6 @@ _template/labextension

# Mac
.DS_Store

# Rust
target
28 changes: 0 additions & 28 deletions MANIFEST.in

This file was deleted.

23 changes: 13 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ install: ## install library
.PHONY: lint lints fix format

lint: ## run python linter with ruff
python -m isort --check airflow_supervisor setup.py
python -m ruff airflow_supervisor setup.py
python -m ruff check airflow_supervisor
python -m ruff format --check airflow_supervisor

# Alias
lints: lint

fix: ## fix python formatting with ruff
python -m isort airflow_supervisor setup.py
python -m ruff format airflow_supervisor setup.py
python -m ruff check --fix airflow_supervisor
python -m ruff format airflow_supervisor

# alias
format: fix

################
# Other Checks #
################
.PHONY: check-manifest checks check
.PHONY: check-manifest checks check annotate

check-manifest: ## check python sdist manifest with check-manifest
check-manifest -v
Expand All @@ -44,6 +44,9 @@ checks: check-manifest
# Alias
check: checks

annotate: ## run python type annotation checks with mypy
python -m mypy ./airflow_supervisor

#########
# TESTS #
#########
Expand All @@ -53,7 +56,7 @@ test: ## run python tests
python -m pytest -v airflow_supervisor/tests --junitxml=junit.xml

coverage: ## run tests and collect test coverage
python -m pytest -v airflow_supervisor/tests --junitxml=junit.xml --cov=airflow_supervisor --cov-branch --cov-fail-under=50 --cov-report term-missing --cov-report xml
python -m pytest -v airflow_supervisor/tests --junitxml=junit.xml --cov=airflow_supervisor --cov-branch --cov-fail-under=60 --cov-report term-missing --cov-report xml

# Alias
tests: test
Expand All @@ -64,16 +67,16 @@ tests: test
.PHONY: show-version patch minor major

show-version: ## show current library version
bump2version --dry-run --allow-dirty setup.py --list | grep current | awk -F= '{print $2}'
@bump-my-version show current_version

patch: ## bump a patch version
bump2version patch
@bump-my-version bump patch

minor: ## bump a minor version
bump2version minor
@bump-my-version bump minor

major: ## bump a major version
bump2version major
@bump-my-version bump major

########
# DIST #
Expand Down
8 changes: 8 additions & 0 deletions docs/src/API.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# API Reference

```{eval-rst}
.. autosummary::
:toctree: _build
airflow_supervisor
```
Loading

0 comments on commit 1a66918

Please sign in to comment.