Skip to content

Commit 74d43ca

Browse files
authored
feat: add support for static typing (#110)
2 parents deb42f4 + 3e349cc commit 74d43ca

66 files changed

Lines changed: 536 additions & 1786 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
uses: actions/checkout@v2.3.1
1313
with:
1414
fetch-depth: 0 # needed to retrieve most recent tag
15-
- name: Set up Python 3.8
15+
- name: Set up Python '3.11'
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.8
18+
python-version: '3.11'
1919
- name: Build
2020
run: make build
2121
- name: Publish to PyPI

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.8]
14+
python-version: ['3.11']
1515

1616
steps:
1717
- name: Checkout

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.idea/
2+
.nitric/
3+
nitric.yaml
24

35
# Byte-compiled / optimized / DLL files
46
__pycache__/

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ repos:
33
rev: stable
44
hooks:
55
- id: black
6-
exclude: ^(examples|nitric/proto)/
6+
exclude: ^(nitric/proto)/
77
- repo: https://github.com/pycqa/flake8
88
rev: 3.7.9
99
hooks:
1010
- id: flake8
11-
exclude: ^(venv|tests|build|dist|nitric/proto|examples)/
11+
exclude: ^(venv|tests|build|dist|nitric/proto)/
1212
- repo: https://github.com/pycqa/pydocstyle
1313
rev: 6.0.0
1414
hooks:
1515
- id: pydocstyle
1616
args:
1717
- --ignore=D100, D105, D203, D212, D415
18-
exclude: ^(venv|tests|build|dist|nitric/proto|examples)/
18+
exclude: ^(venv|tests|build|dist|nitric/proto)/

.python-version

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
3.8.4
2-
3.7.8
1+
3.10.12

examples/documents/delete.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

examples/documents/get.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

examples/documents/paged_results.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/documents/query.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/documents/query_filter.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)