Skip to content

Commit 1a66918

Browse files
committed
uplift to latest
1 parent 7cdf66e commit 1a66918

11 files changed

+171
-87
lines changed

.bumpversion.cfg

-12
This file was deleted.

.copier-answers.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: acb4a69
3+
_src_path: ../../templates/base
4+
add_extension: python
5+
6+
github: airflow-laminar
7+
project_description: Supervisor operators and configuration for long-running tasks
8+
project_name: airflow-supervisor
9+
python_version_primary: '3.11'
10+
team: the airflow-supervisor authors

.github/CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at t.paine154@gmail.com. All
58+
reported by contacting the project team at [email protected].com. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,13 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
labels:
8+
- "part: github_actions"
9+
10+
- package-ecosystem: "pip"
11+
directory: "/"
12+
schedule:
13+
interval: "monthly"
14+
labels:
15+
- "lang: python"
16+
- "part: dependencies"

.github/workflows/build.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: Build Status
23

34
on:
@@ -30,7 +31,7 @@ jobs:
3031
strategy:
3132
matrix:
3233
os: [ubuntu-latest]
33-
python-version: [3.9]
34+
python-version: ["3.11"]
3435

3536
steps:
3637
- uses: actions/checkout@v4
@@ -59,8 +60,8 @@ jobs:
5960
- name: Test
6061
run: make coverage
6162
if: ${{ matrix.os == 'ubuntu-latest' }}
62-
63-
- name: Upload test results
63+
64+
- name: Upload test results (Python)
6465
uses: actions/upload-artifact@v4
6566
with:
6667
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
@@ -76,6 +77,8 @@ jobs:
7677

7778
- name: Upload coverage
7879
uses: codecov/codecov-action@v4
80+
with:
81+
token: ${{ secrets.CODECOV_TOKEN }}
7982

8083
- name: Make dist
8184
run: make dist

.github/workflows/docs.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: write
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: 3.11
16+
- run: pip install .[develop]
17+
- run: pip install yardang
18+
- run: yardang build
19+
- name: Deploy
20+
uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
publish_branch: gh-pages
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_dir: docs/html

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ __pycache__/
55

66
# C extensions
77
*.so
8+
*.dll
89

910
# Distribution / packaging
1011
.Python
@@ -125,9 +126,12 @@ dmypy.json
125126

126127
# Documentation
127128
docs/_build/
129+
docs/src/_build/
128130
/site
129131
docs/api
130132
docs/index.md
133+
docs/html
134+
index.md
131135
_template/labextension
132136

133137
# Jupyter
@@ -136,3 +140,6 @@ _template/labextension
136140

137141
# Mac
138142
.DS_Store
143+
144+
# Rust
145+
target

MANIFEST.in

-28
This file was deleted.

Makefile

+13-10
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@ install: ## install library
1818
.PHONY: lint lints fix format
1919

2020
lint: ## run python linter with ruff
21-
python -m isort --check airflow_supervisor setup.py
22-
python -m ruff airflow_supervisor setup.py
21+
python -m ruff check airflow_supervisor
22+
python -m ruff format --check airflow_supervisor
2323

2424
# Alias
2525
lints: lint
2626

2727
fix: ## fix python formatting with ruff
28-
python -m isort airflow_supervisor setup.py
29-
python -m ruff format airflow_supervisor setup.py
28+
python -m ruff check --fix airflow_supervisor
29+
python -m ruff format airflow_supervisor
3030

3131
# alias
3232
format: fix
3333

3434
################
3535
# Other Checks #
3636
################
37-
.PHONY: check-manifest checks check
37+
.PHONY: check-manifest checks check annotate
3838

3939
check-manifest: ## check python sdist manifest with check-manifest
4040
check-manifest -v
@@ -44,6 +44,9 @@ checks: check-manifest
4444
# Alias
4545
check: checks
4646

47+
annotate: ## run python type annotation checks with mypy
48+
python -m mypy ./airflow_supervisor
49+
4750
#########
4851
# TESTS #
4952
#########
@@ -53,7 +56,7 @@ test: ## run python tests
5356
python -m pytest -v airflow_supervisor/tests --junitxml=junit.xml
5457

5558
coverage: ## run tests and collect test coverage
56-
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
59+
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
5760

5861
# Alias
5962
tests: test
@@ -64,16 +67,16 @@ tests: test
6467
.PHONY: show-version patch minor major
6568

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

6972
patch: ## bump a patch version
70-
bump2version patch
73+
@bump-my-version bump patch
7174

7275
minor: ## bump a minor version
73-
bump2version minor
76+
@bump-my-version bump minor
7477

7578
major: ## bump a major version
76-
bump2version major
79+
@bump-my-version bump major
7780

7881
########
7982
# DIST #

docs/src/API.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# API Reference
2+
3+
```{eval-rst}
4+
.. autosummary::
5+
:toctree: _build
6+
7+
airflow_supervisor
8+
```

0 commit comments

Comments
 (0)