throttle-controller 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/.coveragerc +3 -0
- throttle_controller-0.4.0/.github/ISSUE_TEMPLATE/bug_report.yml +68 -0
- throttle_controller-0.4.0/.github/ISSUE_TEMPLATE/feature_request.yml +40 -0
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/.github/workflows/gitignore-in.yml +1 -6
- throttle_controller-0.4.0/.github/workflows/happy.yml +10 -0
- throttle_controller-0.4.0/.github/workflows/octocov.yml +57 -0
- throttle_controller-0.4.0/.github/workflows/pypi-publish.yml +57 -0
- throttle_controller-0.4.0/.github/workflows/python-test.yml +78 -0
- throttle_controller-0.4.0/.github/workflows/spellcheck.yml +8 -0
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/.gitignore +119 -29
- throttle_controller-0.4.0/.gitignore.in +5 -0
- throttle_controller-0.4.0/.octocov.yml +22 -0
- throttle_controller-0.4.0/CONTRIBUTING.md +67 -0
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/LICENSE +1 -1
- throttle_controller-0.4.0/PKG-INFO +151 -0
- throttle_controller-0.4.0/README.md +120 -0
- throttle_controller-0.4.0/lefthook.yml +13 -0
- throttle_controller-0.4.0/pyproject.toml +106 -0
- throttle_controller-0.4.0/setup.cfg +4 -0
- throttle_controller-0.4.0/tests/test_simple.py +443 -0
- throttle_controller-0.4.0/tests/test_utils_interval.py +33 -0
- throttle_controller-0.4.0/throttle_controller/__init__.py +18 -0
- throttle_controller-0.4.0/throttle_controller/protocol.py +61 -0
- throttle_controller-0.4.0/throttle_controller/simple.py +233 -0
- throttle_controller-0.4.0/throttle_controller/utils/interval.py +40 -0
- throttle_controller-0.4.0/throttle_controller.egg-info/PKG-INFO +151 -0
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/throttle_controller.egg-info/SOURCES.txt +9 -4
- throttle_controller-0.4.0/throttle_controller.egg-info/scm_file_list.json +32 -0
- throttle_controller-0.4.0/throttle_controller.egg-info/scm_version.json +8 -0
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/throttle_controller.egg-info/top_level.txt +0 -1
- throttle_controller-0.4.0/uv.lock +587 -0
- throttle_controller-0.3.0/.github/workflows/happy.yml +0 -18
- throttle_controller-0.3.0/.github/workflows/pypi-publish.yml +0 -57
- throttle_controller-0.3.0/.github/workflows/python-test.yml +0 -71
- throttle_controller-0.3.0/.github/workflows/spellcheck.yml +0 -16
- throttle_controller-0.3.0/.gitignore.in +0 -10
- throttle_controller-0.3.0/PKG-INFO +0 -70
- throttle_controller-0.3.0/README.md +0 -44
- throttle_controller-0.3.0/poetry.lock +0 -509
- throttle_controller-0.3.0/pyproject.toml +0 -52
- throttle_controller-0.3.0/setup.cfg +0 -46
- throttle_controller-0.3.0/tests/test_simple.py +0 -82
- throttle_controller-0.3.0/tests/test_utils_interval.py +0 -12
- throttle_controller-0.3.0/throttle_controller/__init__.py +0 -5
- throttle_controller-0.3.0/throttle_controller/_version.py +0 -16
- throttle_controller-0.3.0/throttle_controller/protocol.py +0 -34
- throttle_controller-0.3.0/throttle_controller/simple.py +0 -55
- throttle_controller-0.3.0/throttle_controller/utils/interval.py +0 -14
- throttle_controller-0.3.0/throttle_controller.egg-info/PKG-INFO +0 -70
- throttle_controller-0.3.0/throttle_controller.egg-info/requires.txt +0 -7
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/.github/renovate.json5 +0 -0
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/tests/__init__.py +0 -0
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/throttle_controller/py.typed +0 -0
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/throttle_controller/utils/__init__.py +0 -0
- {throttle_controller-0.3.0 → throttle_controller-0.4.0}/throttle_controller.egg-info/dependency_links.txt +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report behavior that is not working as expected.
|
|
3
|
+
title: "Bug: "
|
|
4
|
+
labels:
|
|
5
|
+
- bug
|
|
6
|
+
body:
|
|
7
|
+
- type: markdown
|
|
8
|
+
attributes:
|
|
9
|
+
value: |
|
|
10
|
+
Thanks for reporting a problem with `throttle-controller`.
|
|
11
|
+
Please include enough detail for maintainers to reproduce the behavior.
|
|
12
|
+
- type: input
|
|
13
|
+
id: package-version
|
|
14
|
+
attributes:
|
|
15
|
+
label: throttle-controller version
|
|
16
|
+
description: The installed package version.
|
|
17
|
+
placeholder: "0.3.1"
|
|
18
|
+
validations:
|
|
19
|
+
required: true
|
|
20
|
+
- type: input
|
|
21
|
+
id: python-version
|
|
22
|
+
attributes:
|
|
23
|
+
label: Python version
|
|
24
|
+
description: The Python version used when the problem occurred.
|
|
25
|
+
placeholder: "3.13.1"
|
|
26
|
+
validations:
|
|
27
|
+
required: true
|
|
28
|
+
- type: input
|
|
29
|
+
id: operating-system
|
|
30
|
+
attributes:
|
|
31
|
+
label: Operating system
|
|
32
|
+
description: The operating system and version.
|
|
33
|
+
placeholder: "macOS 15.5, Ubuntu 24.04, Windows 11"
|
|
34
|
+
validations:
|
|
35
|
+
required: true
|
|
36
|
+
- type: textarea
|
|
37
|
+
id: reproduction
|
|
38
|
+
attributes:
|
|
39
|
+
label: Minimal reproduction
|
|
40
|
+
description: Provide the smallest code sample or sequence of steps that reproduces the issue.
|
|
41
|
+
placeholder: |
|
|
42
|
+
from throttle_controller import SimpleThrottleController
|
|
43
|
+
|
|
44
|
+
throttle = SimpleThrottleController.create(default_cooldown_time=3.0)
|
|
45
|
+
...
|
|
46
|
+
validations:
|
|
47
|
+
required: true
|
|
48
|
+
- type: textarea
|
|
49
|
+
id: expected-behavior
|
|
50
|
+
attributes:
|
|
51
|
+
label: Expected behavior
|
|
52
|
+
description: What did you expect to happen?
|
|
53
|
+
validations:
|
|
54
|
+
required: true
|
|
55
|
+
- type: textarea
|
|
56
|
+
id: actual-behavior
|
|
57
|
+
attributes:
|
|
58
|
+
label: Actual behavior
|
|
59
|
+
description: What happened instead? Include traceback or logs when available.
|
|
60
|
+
validations:
|
|
61
|
+
required: true
|
|
62
|
+
- type: textarea
|
|
63
|
+
id: additional-context
|
|
64
|
+
attributes:
|
|
65
|
+
label: Additional context
|
|
66
|
+
description: Add any extra context that may help explain the issue.
|
|
67
|
+
validations:
|
|
68
|
+
required: false
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Suggest an improvement or new capability.
|
|
3
|
+
title: "Feature: "
|
|
4
|
+
labels:
|
|
5
|
+
- enhancement
|
|
6
|
+
body:
|
|
7
|
+
- type: markdown
|
|
8
|
+
attributes:
|
|
9
|
+
value: |
|
|
10
|
+
Thanks for suggesting an improvement to `throttle-controller`.
|
|
11
|
+
Please describe the use case and the behavior you need.
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: use-case
|
|
14
|
+
attributes:
|
|
15
|
+
label: Use case
|
|
16
|
+
description: What are you trying to accomplish?
|
|
17
|
+
placeholder: "I want to throttle calls to ..."
|
|
18
|
+
validations:
|
|
19
|
+
required: true
|
|
20
|
+
- type: textarea
|
|
21
|
+
id: proposed-behavior
|
|
22
|
+
attributes:
|
|
23
|
+
label: Proposed behavior
|
|
24
|
+
description: Describe the behavior or API you would like to see.
|
|
25
|
+
validations:
|
|
26
|
+
required: true
|
|
27
|
+
- type: textarea
|
|
28
|
+
id: alternatives
|
|
29
|
+
attributes:
|
|
30
|
+
label: Alternatives considered
|
|
31
|
+
description: Describe any workaround or alternative design you considered.
|
|
32
|
+
validations:
|
|
33
|
+
required: false
|
|
34
|
+
- type: textarea
|
|
35
|
+
id: additional-context
|
|
36
|
+
attributes:
|
|
37
|
+
label: Additional context
|
|
38
|
+
description: Add examples, links, or constraints that may help evaluate the request.
|
|
39
|
+
validations:
|
|
40
|
+
required: false
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
name: Update gitignore file
|
|
2
|
-
|
|
3
2
|
on:
|
|
4
3
|
schedule:
|
|
5
4
|
# daily at 00:00
|
|
6
5
|
- cron: '0 0 * * *'
|
|
7
|
-
|
|
8
6
|
permissions:
|
|
9
7
|
contents: write
|
|
10
8
|
pull-requests: write
|
|
11
|
-
|
|
12
9
|
jobs:
|
|
13
10
|
update-gitignore:
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- uses: gitignore-in/gh-action@v0.2.2
|
|
11
|
+
uses: kitsuyui/gh-actions-workflows/.github/workflows/gitignore-in.yml@a7071a4635eaece62696cd7132306616ce283c47
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: octocov
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
pull-requests: write
|
|
15
|
+
checks: write
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
octocov:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
python: ["3.14"]
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- name: Checkout
|
|
27
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
28
|
+
|
|
29
|
+
- name: Set up Python
|
|
30
|
+
id: setup-python
|
|
31
|
+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
32
|
+
with:
|
|
33
|
+
python-version: "${{ matrix.python }}"
|
|
34
|
+
|
|
35
|
+
- name: Set up uv
|
|
36
|
+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
37
|
+
with:
|
|
38
|
+
enable-cache: true
|
|
39
|
+
cache-dependency-glob: uv.lock
|
|
40
|
+
|
|
41
|
+
- name: Install dependencies
|
|
42
|
+
run: |
|
|
43
|
+
uv python pin ${{ matrix.python }}
|
|
44
|
+
uv sync
|
|
45
|
+
|
|
46
|
+
- name: Test
|
|
47
|
+
run: uv run poe test
|
|
48
|
+
|
|
49
|
+
- name: Coverage
|
|
50
|
+
run: uv run poe coverage-xml
|
|
51
|
+
|
|
52
|
+
# See also: https://github.com/k1LoW/octocov-action
|
|
53
|
+
- name: Report coverage with octocov
|
|
54
|
+
uses: k1LoW/octocov-action@b3b6ee60482a667950f87553abf1df63217235d9 # v1
|
|
55
|
+
with:
|
|
56
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
57
|
+
config: .octocov.yml
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Packaging
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize, reopened]
|
|
6
|
+
release:
|
|
7
|
+
# "released" events are emitted either when directly be released or be edited from pre-released.
|
|
8
|
+
types: [prereleased, released]
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: ${{ github.event_name != 'release' }}
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
env:
|
|
18
|
+
python_version: 3.13
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
deploy:
|
|
22
|
+
permissions:
|
|
23
|
+
contents: read
|
|
24
|
+
id-token: write
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
28
|
+
|
|
29
|
+
- name: Set up Python
|
|
30
|
+
id: setup-python
|
|
31
|
+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
32
|
+
with:
|
|
33
|
+
python-version: ${{ env.python_version }}
|
|
34
|
+
|
|
35
|
+
- name: Set up uv
|
|
36
|
+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
37
|
+
with:
|
|
38
|
+
enable-cache: true
|
|
39
|
+
cache-dependency-glob: uv.lock
|
|
40
|
+
|
|
41
|
+
- name: Install dependencies
|
|
42
|
+
run: |
|
|
43
|
+
uv python pin ${{ env.python_version }}
|
|
44
|
+
uv sync
|
|
45
|
+
|
|
46
|
+
- name: Build
|
|
47
|
+
run: uv build
|
|
48
|
+
|
|
49
|
+
- name: Publish distribution to Test PyPI
|
|
50
|
+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
|
|
51
|
+
if: github.event_name == 'release' && github.event.release.prerelease
|
|
52
|
+
with:
|
|
53
|
+
repository-url: https://test.pypi.org/legacy/
|
|
54
|
+
|
|
55
|
+
- name: Publish distribution to PyPI
|
|
56
|
+
if: github.event_name == 'release' && !github.event.release.prerelease
|
|
57
|
+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
on:
|
|
3
|
+
# pull-request events are not triggered when a PR is merged
|
|
4
|
+
# push events are not triggered when a PR created from a fork repository
|
|
5
|
+
# So we need both to run tests on every PR and after merging
|
|
6
|
+
pull_request:
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
test:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
strategy:
|
|
22
|
+
fail-fast: false
|
|
23
|
+
matrix:
|
|
24
|
+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- name: Checkout
|
|
28
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
29
|
+
|
|
30
|
+
- name: Set up Python
|
|
31
|
+
id: setup-python
|
|
32
|
+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
|
33
|
+
with:
|
|
34
|
+
python-version: "${{ matrix.python }}"
|
|
35
|
+
|
|
36
|
+
- name: Set up uv
|
|
37
|
+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
38
|
+
with:
|
|
39
|
+
enable-cache: true
|
|
40
|
+
cache-dependency-glob: uv.lock
|
|
41
|
+
|
|
42
|
+
- name: Install dependencies
|
|
43
|
+
run: |
|
|
44
|
+
uv python pin ${{ matrix.python }}
|
|
45
|
+
uv sync
|
|
46
|
+
|
|
47
|
+
- parallel:
|
|
48
|
+
- name: Lint
|
|
49
|
+
run: uv run poe check
|
|
50
|
+
|
|
51
|
+
- name: Check Python version
|
|
52
|
+
run: |
|
|
53
|
+
actual_version=$(uv run python --version)
|
|
54
|
+
expected_version="Python ${{ matrix.python }}"
|
|
55
|
+
if [[ "$actual_version" != *"$expected_version"* ]]; then
|
|
56
|
+
echo "Expected $expected_version, but got $actual_version"
|
|
57
|
+
exit 1
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
- name: Test
|
|
61
|
+
run: uv run poe test
|
|
62
|
+
|
|
63
|
+
audit:
|
|
64
|
+
runs-on: ubuntu-latest
|
|
65
|
+
steps:
|
|
66
|
+
- name: Checkout
|
|
67
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
68
|
+
|
|
69
|
+
- name: Set up uv
|
|
70
|
+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
71
|
+
with:
|
|
72
|
+
enable-cache: true
|
|
73
|
+
cache-dependency-glob: uv.lock
|
|
74
|
+
|
|
75
|
+
- name: Audit dependencies for known CVEs
|
|
76
|
+
run: |
|
|
77
|
+
uv export --no-emit-project -o /tmp/requirements.txt
|
|
78
|
+
uvx pip-audit -r /tmp/requirements.txt
|
|
@@ -2,19 +2,17 @@
|
|
|
2
2
|
# Generated by gitignore.in
|
|
3
3
|
# Edit .gitignore.in instead of this file
|
|
4
4
|
# Run `gitignore.in` to build .gitignore
|
|
5
|
-
# #!/usr/bin/env bash
|
|
6
|
-
# # `gibo list' and `gi list'
|
|
7
5
|
# -----------------------------------------------------------------------------
|
|
8
6
|
# gibo dump Linux
|
|
9
7
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
10
|
-
### https://raw.github.com/github/gitignore/
|
|
8
|
+
### https://raw.github.com/github/gitignore/576334520435382d6522f349b9d270eda1e79a25/Global/Linux.gitignore
|
|
11
9
|
|
|
12
10
|
*~
|
|
13
11
|
|
|
14
12
|
# temporary files which can be created if a process still has a handle open of a deleted file
|
|
15
13
|
.fuse_hidden*
|
|
16
14
|
|
|
17
|
-
# KDE
|
|
15
|
+
# Metadata left by Dolphin file manager, which comes with KDE Plasma
|
|
18
16
|
.directory
|
|
19
17
|
|
|
20
18
|
# Linux trash folder which might appear on any partition or disk
|
|
@@ -22,10 +20,13 @@
|
|
|
22
20
|
|
|
23
21
|
# .nfs files are created when an open file is removed but is still being accessed
|
|
24
22
|
.nfs*
|
|
23
|
+
|
|
24
|
+
# Log files created by default by the nohup command
|
|
25
|
+
nohup.out
|
|
25
26
|
# -----------------------------------------------------------------------------
|
|
26
27
|
# gibo dump Windows
|
|
27
28
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
28
|
-
### https://raw.github.com/github/gitignore/
|
|
29
|
+
### https://raw.github.com/github/gitignore/576334520435382d6522f349b9d270eda1e79a25/Global/Windows.gitignore
|
|
29
30
|
|
|
30
31
|
# Windows thumbnail cache files
|
|
31
32
|
Thumbs.db
|
|
@@ -54,20 +55,20 @@ $RECYCLE.BIN/
|
|
|
54
55
|
# -----------------------------------------------------------------------------
|
|
55
56
|
# gibo dump macOS
|
|
56
57
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
57
|
-
### https://raw.github.com/github/gitignore/
|
|
58
|
+
### https://raw.github.com/github/gitignore/576334520435382d6522f349b9d270eda1e79a25/Global/macOS.gitignore
|
|
58
59
|
|
|
59
60
|
# General
|
|
60
61
|
.DS_Store
|
|
62
|
+
.localized
|
|
63
|
+
__MACOSX/
|
|
61
64
|
.AppleDouble
|
|
62
65
|
.LSOverride
|
|
66
|
+
Icon[
|
|
63
67
|
|
|
64
|
-
#
|
|
65
|
-
Icon
|
|
66
|
-
|
|
67
|
-
# Thumbnails
|
|
68
|
+
# Resource forks
|
|
68
69
|
._*
|
|
69
70
|
|
|
70
|
-
# Files that might appear in the root of a volume
|
|
71
|
+
# Files and directories that might appear in the root of a volume
|
|
71
72
|
.DocumentRevisions-V100
|
|
72
73
|
.fseventsd
|
|
73
74
|
.Spotlight-V100
|
|
@@ -75,6 +76,15 @@ Icon
|
|
|
75
76
|
.Trashes
|
|
76
77
|
.VolumeIcon.icns
|
|
77
78
|
.com.apple.timemachine.donotpresent
|
|
79
|
+
.com.apple.timemachine.supported
|
|
80
|
+
.PKInstallSandboxManager
|
|
81
|
+
.PKInstallSandboxManager-SystemSoftware
|
|
82
|
+
.hotfiles.btree
|
|
83
|
+
.vol
|
|
84
|
+
.file
|
|
85
|
+
.disk_label*
|
|
86
|
+
lost+found
|
|
87
|
+
.HFS+ Private Directory Data[
|
|
78
88
|
|
|
79
89
|
# Directories potentially created on remote AFP share
|
|
80
90
|
.AppleDB
|
|
@@ -82,14 +92,36 @@ Icon
|
|
|
82
92
|
Network Trash Folder
|
|
83
93
|
Temporary Items
|
|
84
94
|
.apdisk
|
|
95
|
+
|
|
96
|
+
# Mac OS 6 to 9
|
|
97
|
+
Desktop DB
|
|
98
|
+
Desktop DF
|
|
99
|
+
TheFindByContentFolder
|
|
100
|
+
TheVolumeSettingsFolder
|
|
101
|
+
.FBCIndex
|
|
102
|
+
.FBCSemaphoreFile
|
|
103
|
+
.FBCLockFolder
|
|
104
|
+
|
|
105
|
+
# Quota system
|
|
106
|
+
.quota.group
|
|
107
|
+
.quota.user
|
|
108
|
+
.quota.ops.group
|
|
109
|
+
.quota.ops.user
|
|
110
|
+
|
|
111
|
+
# TimeMachine
|
|
112
|
+
Backups.backupdb
|
|
113
|
+
.MobileBackups
|
|
114
|
+
.MobileBackups.trash
|
|
115
|
+
MobileBackups.trash
|
|
116
|
+
tmbootpicker.efi
|
|
85
117
|
# -----------------------------------------------------------------------------
|
|
86
118
|
# gibo dump Python
|
|
87
119
|
### Generated by gibo (https://github.com/simonwhitaker/gibo)
|
|
88
|
-
### https://raw.github.com/github/gitignore/
|
|
120
|
+
### https://raw.github.com/github/gitignore/576334520435382d6522f349b9d270eda1e79a25/Python.gitignore
|
|
89
121
|
|
|
90
122
|
# Byte-compiled / optimized / DLL files
|
|
91
123
|
__pycache__/
|
|
92
|
-
*.py[
|
|
124
|
+
*.py[codz]
|
|
93
125
|
*$py.class
|
|
94
126
|
|
|
95
127
|
# C extensions
|
|
@@ -116,8 +148,8 @@ share/python-wheels/
|
|
|
116
148
|
MANIFEST
|
|
117
149
|
|
|
118
150
|
# PyInstaller
|
|
119
|
-
#
|
|
120
|
-
#
|
|
151
|
+
# Usually these files are written by a python script from a template
|
|
152
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
121
153
|
*.manifest
|
|
122
154
|
*.spec
|
|
123
155
|
|
|
@@ -135,7 +167,8 @@ htmlcov/
|
|
|
135
167
|
nosetests.xml
|
|
136
168
|
coverage.xml
|
|
137
169
|
*.cover
|
|
138
|
-
*.py
|
|
170
|
+
*.py.cover
|
|
171
|
+
*.lcov
|
|
139
172
|
.hypothesis/
|
|
140
173
|
.pytest_cache/
|
|
141
174
|
cover/
|
|
@@ -181,37 +214,65 @@ ipython_config.py
|
|
|
181
214
|
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
182
215
|
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
183
216
|
# install all needed dependencies.
|
|
184
|
-
#Pipfile.lock
|
|
217
|
+
# Pipfile.lock
|
|
218
|
+
|
|
219
|
+
# UV
|
|
220
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
221
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
222
|
+
# commonly ignored for libraries.
|
|
223
|
+
# uv.lock
|
|
185
224
|
|
|
186
225
|
# poetry
|
|
187
226
|
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
188
227
|
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
189
228
|
# commonly ignored for libraries.
|
|
190
229
|
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
191
|
-
#poetry.lock
|
|
230
|
+
# poetry.lock
|
|
231
|
+
# poetry.toml
|
|
192
232
|
|
|
193
233
|
# pdm
|
|
194
234
|
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
195
|
-
#pdm.
|
|
196
|
-
# pdm
|
|
197
|
-
#
|
|
198
|
-
#
|
|
199
|
-
.pdm.toml
|
|
235
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
236
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
237
|
+
# pdm.lock
|
|
238
|
+
# pdm.toml
|
|
200
239
|
.pdm-python
|
|
201
240
|
.pdm-build/
|
|
202
241
|
|
|
242
|
+
# pixi
|
|
243
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
244
|
+
# pixi.lock
|
|
245
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
246
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
247
|
+
.pixi/*
|
|
248
|
+
!.pixi/config.toml
|
|
249
|
+
|
|
203
250
|
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
204
251
|
__pypackages__/
|
|
205
252
|
|
|
206
253
|
# Celery stuff
|
|
207
|
-
celerybeat-schedule
|
|
254
|
+
celerybeat-schedule*
|
|
208
255
|
celerybeat.pid
|
|
209
256
|
|
|
257
|
+
# Redis
|
|
258
|
+
*.rdb
|
|
259
|
+
*.aof
|
|
260
|
+
*.pid
|
|
261
|
+
|
|
262
|
+
# RabbitMQ
|
|
263
|
+
mnesia/
|
|
264
|
+
rabbitmq/
|
|
265
|
+
rabbitmq-data/
|
|
266
|
+
|
|
267
|
+
# ActiveMQ
|
|
268
|
+
activemq-data/
|
|
269
|
+
|
|
210
270
|
# SageMath parsed files
|
|
211
271
|
*.sage.py
|
|
212
272
|
|
|
213
273
|
# Environments
|
|
214
274
|
.env
|
|
275
|
+
.envrc
|
|
215
276
|
.venv
|
|
216
277
|
env/
|
|
217
278
|
venv/
|
|
@@ -244,10 +305,39 @@ dmypy.json
|
|
|
244
305
|
cython_debug/
|
|
245
306
|
|
|
246
307
|
# PyCharm
|
|
247
|
-
#
|
|
248
|
-
#
|
|
249
|
-
#
|
|
250
|
-
#
|
|
251
|
-
|
|
308
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
309
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
310
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
311
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
312
|
+
# .idea/
|
|
313
|
+
|
|
314
|
+
# Abstra
|
|
315
|
+
# Abstra is an AI-powered process automation framework.
|
|
316
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
317
|
+
# Learn more at https://abstra.io/docs
|
|
318
|
+
.abstra/
|
|
319
|
+
|
|
320
|
+
# Visual Studio Code
|
|
321
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
322
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
323
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
324
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
325
|
+
# .vscode/
|
|
326
|
+
# Temporary file for partial code execution
|
|
327
|
+
tempCodeRunnerFile.py
|
|
328
|
+
|
|
329
|
+
# Ruff stuff:
|
|
330
|
+
.ruff_cache/
|
|
331
|
+
|
|
332
|
+
# PyPI configuration file
|
|
333
|
+
.pypirc
|
|
334
|
+
|
|
335
|
+
# Marimo
|
|
336
|
+
marimo/_static/
|
|
337
|
+
marimo/_lsp/
|
|
338
|
+
__marimo__/
|
|
339
|
+
|
|
340
|
+
# Streamlit
|
|
341
|
+
.streamlit/secrets.toml
|
|
252
342
|
# -----------------------------------------------------------------------------
|
|
253
343
|
_version.py
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# https://github.com/k1LoW/octocov?tab=readme-ov-file#configuration
|
|
2
|
+
coverage:
|
|
3
|
+
acceptable: current >= 100%
|
|
4
|
+
paths:
|
|
5
|
+
- coverage.xml
|
|
6
|
+
codeToTestRatio:
|
|
7
|
+
code:
|
|
8
|
+
- "**/*.py"
|
|
9
|
+
test:
|
|
10
|
+
- "tests/**/*.py"
|
|
11
|
+
testExecutionTime:
|
|
12
|
+
if: true
|
|
13
|
+
diff:
|
|
14
|
+
datastores:
|
|
15
|
+
- artifact://${GITHUB_REPOSITORY}
|
|
16
|
+
comment:
|
|
17
|
+
if: is_pull_request
|
|
18
|
+
updatePrevious: true
|
|
19
|
+
report:
|
|
20
|
+
if: is_default_branch
|
|
21
|
+
datastores:
|
|
22
|
+
- artifact://${GITHUB_REPOSITORY}
|