scots-codes 0.1.2__tar.gz → 0.1.3__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.
- scots_codes-0.1.3/.github/workflows/ci.yml +57 -0
- {scots_codes-0.1.2 → scots_codes-0.1.3}/.github/workflows/publish.yml +11 -2
- {scots_codes-0.1.2 → scots_codes-0.1.3}/PKG-INFO +5 -2
- {scots_codes-0.1.2 → scots_codes-0.1.3}/README.md +4 -1
- {scots_codes-0.1.2 → scots_codes-0.1.3}/pyproject.toml +1 -1
- {scots_codes-0.1.2 → scots_codes-0.1.3}/.gitignore +0 -0
- {scots_codes-0.1.2 → scots_codes-0.1.3}/.markdownlint.json +0 -0
- {scots_codes-0.1.2 → scots_codes-0.1.3}/LICENSE +0 -0
- {scots_codes-0.1.2 → scots_codes-0.1.3}/scots_codes/__init__.py +0 -0
- {scots_codes-0.1.2 → scots_codes-0.1.3}/scots_codes/codes.py +0 -0
- {scots_codes-0.1.2 → scots_codes-0.1.3}/scots_codes/fastapi.py +0 -0
- {scots_codes-0.1.2 → scots_codes-0.1.3}/scots_codes/py.typed +0 -0
- {scots_codes-0.1.2 → scots_codes-0.1.3}/tests/test_fastapi.py +0 -0
- {scots_codes-0.1.2 → scots_codes-0.1.3}/uv.lock +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
workflow_call:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
lint:
|
|
13
|
+
name: Lint & Type Check
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v7
|
|
18
|
+
|
|
19
|
+
- name: Install uv
|
|
20
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
21
|
+
with:
|
|
22
|
+
enable-cache: true
|
|
23
|
+
|
|
24
|
+
- name: Sync dependencies
|
|
25
|
+
run: uv sync --frozen
|
|
26
|
+
|
|
27
|
+
- name: Ruff lint
|
|
28
|
+
run: uv run --no-sync ruff check scots_codes tests
|
|
29
|
+
|
|
30
|
+
- name: Ruff format check
|
|
31
|
+
run: uv run --no-sync ruff format --check scots_codes tests
|
|
32
|
+
|
|
33
|
+
- name: Mypy
|
|
34
|
+
run: uv run --no-sync mypy scots_codes tests
|
|
35
|
+
|
|
36
|
+
- name: Pyright
|
|
37
|
+
run: uv run --no-sync pyright scots_codes tests
|
|
38
|
+
|
|
39
|
+
test:
|
|
40
|
+
name: Test (Python ${{ matrix.python-version }})
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
strategy:
|
|
43
|
+
fail-fast: false
|
|
44
|
+
matrix:
|
|
45
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
46
|
+
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/checkout@v7
|
|
49
|
+
|
|
50
|
+
- name: Install uv and Python ${{ matrix.python-version }}
|
|
51
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
52
|
+
with:
|
|
53
|
+
enable-cache: true
|
|
54
|
+
python-version: ${{ matrix.python-version }}
|
|
55
|
+
|
|
56
|
+
- name: Run tests
|
|
57
|
+
run: uv run --frozen pytest
|
|
@@ -5,8 +5,17 @@ on:
|
|
|
5
5
|
types: [published]
|
|
6
6
|
workflow_dispatch:
|
|
7
7
|
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
8
11
|
jobs:
|
|
12
|
+
check:
|
|
13
|
+
name: CI Checks
|
|
14
|
+
uses: ./.github/workflows/ci.yml
|
|
15
|
+
|
|
9
16
|
publish:
|
|
17
|
+
name: Publish to PyPI
|
|
18
|
+
needs: check
|
|
10
19
|
runs-on: ubuntu-latest
|
|
11
20
|
environment:
|
|
12
21
|
name: pypi
|
|
@@ -16,10 +25,10 @@ jobs:
|
|
|
16
25
|
contents: read
|
|
17
26
|
|
|
18
27
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
28
|
+
- uses: actions/checkout@v7
|
|
20
29
|
|
|
21
30
|
- name: Install uv
|
|
22
|
-
uses: astral-sh/setup-uv@
|
|
31
|
+
uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
23
32
|
|
|
24
33
|
- name: Build distributions
|
|
25
34
|
run: uv build
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: scots-codes
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Scottish HTTP Codes
|
|
5
5
|
Project-URL: Reference, https://underwood.network/http/scots.html
|
|
6
6
|
License: MIT License
|
|
@@ -42,7 +42,10 @@ Description-Content-Type: text/markdown
|
|
|
42
42
|
|
|
43
43
|
# scots-codes
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
[](https://github.com/vanyakosmos/scots-codes/actions/workflows/ci.yml)
|
|
46
|
+
[](https://pypi.org/project/scots-codes/)
|
|
47
|
+
|
|
48
|
+
A small library with better status code descriptions.
|
|
46
49
|
|
|
47
50
|
Inspired by (literally copied from) <https://underwood.network/http/scots.html>.
|
|
48
51
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# scots-codes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/vanyakosmos/scots-codes/actions/workflows/ci.yml)
|
|
4
|
+
[](https://pypi.org/project/scots-codes/)
|
|
5
|
+
|
|
6
|
+
A small library with better status code descriptions.
|
|
4
7
|
|
|
5
8
|
Inspired by (literally copied from) <https://underwood.network/http/scots.html>.
|
|
6
9
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|