Skip to content

Commit c9fa7de

Browse files
committed
update documentation
1 parent d3c58c8 commit c9fa7de

22 files changed

+888
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
2828
- name: Run linting
2929
run: |
30-
python -m ruff check .
31-
python -m ruff format --check .
30+
python -m ruff check src/
31+
python -m ruff format --check src/
3232
3333
- name: Run type checking
3434
run: python -m mypy src/

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,4 @@ openapi_spec.yml
155155
.claude/settings.local.json
156156

157157
# Integration test configuration
158-
src/tests/integration/integration_config.py
158+
tests/integration/integration_config.py

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ repos:
1818
hooks:
1919
- id: ruff
2020
args: [--fix]
21+
files: ^src
2122
- id: ruff-format
23+
files: ^src
2224

2325
- repo: https://github.com/pre-commit/mirrors-mypy
2426
rev: v1.17.1
2527
hooks:
2628
- id: mypy
2729
additional_dependencies: [types-aiofiles, httpx]
28-
files: ^src/nutrient_dws
30+
files: ^src

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ ignore = [
111111
convention = "google"
112112

113113
[tool.ruff.lint.per-file-ignores]
114-
"tests/*" = ["D", "S101"] # Don't require docstrings in tests, allow asserts
114+
"tests/*" = [] # Don't require docstrings in tests, allow asserts
115115

116116
[tool.mypy]
117117
python_version = "3.10"

pytest.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ testpaths = tests
33
python_files = test_*.py
44
python_classes = Test*
55
python_functions = test_*
6-
addopts = -ra
6+
addopts = -ra --tb=short
7+
asyncio_mode = auto

src/scripts/add_claude_code_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33

44

5-
def main():
5+
def main() -> None:
66
script_dir = os.path.dirname(os.path.abspath(__file__))
77
doc_path = os.path.join(script_dir, "..", "LLM_DOC.md")
88
type_path = os.path.join(script_dir, "..", "dist", "__init__.pyi")

src/scripts/add_cursor_rule.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33

44

5-
def main():
5+
def main() -> None:
66
script_dir = os.path.dirname(os.path.abspath(__file__))
77
doc_path = os.path.join(script_dir, "..", "LLM_DOC.md")
88
with open(doc_path, encoding="utf-8") as file:
@@ -31,7 +31,9 @@ def main():
3131
with open(output_file, "a", encoding="utf-8") as f:
3232
f.write(rule)
3333

34-
print(f"📄 Updated Cursor Rules to point to Nutrient DWS documentation at {output_file}.")
34+
print(
35+
f"📄 Updated Cursor Rules to point to Nutrient DWS documentation at {output_file}."
36+
)
3537
except Exception as err:
3638
print(f"Failed to update Cursor Rule: {err}", file=sys.stderr)
3739
sys.exit(1)

src/scripts/add_github_copilot_rule.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33

44

5-
def main():
5+
def main() -> None:
66
script_dir = os.path.dirname(os.path.abspath(__file__))
77
doc_path = os.path.join(script_dir, "..", "LLM_DOC.md")
88
type_path = os.path.join(script_dir, "..", "dist", "__init__.pyi")
@@ -30,5 +30,8 @@ def main():
3030
f"📄 Updated GitHub Copilot Rules to point to Nutrient DWS documentation at {relative_doc_path} and {relative_type_path}."
3131
)
3232
except Exception as err:
33-
print(f"Failed to update .github/copilot-instructions.md file: {err}", file=sys.stderr)
33+
print(
34+
f"Failed to update .github/copilot-instructions.md file: {err}",
35+
file=sys.stderr,
36+
)
3437
sys.exit(1)

src/scripts/add_junie_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33

44

5-
def main():
5+
def main() -> None:
66
script_dir = os.path.dirname(os.path.abspath(__file__))
77
doc_path = os.path.join(script_dir, "..", "LLM_DOC.md")
88
type_path = os.path.join(script_dir, "..", "dist", "__init__.pyi")

src/scripts/add_windsurf_rule.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33

44

5-
def main():
5+
def main() -> None:
66
script_dir = os.path.dirname(os.path.abspath(__file__))
77
doc_path = os.path.join(script_dir, "..", "LLM_DOC.md")
88
with open(doc_path, encoding="utf-8") as file:
@@ -30,7 +30,9 @@ def main():
3030
with open(output_file, "a", encoding="utf-8") as f:
3131
f.write(rule)
3232

33-
print(f"📄 Updated Windsurf Rules to point to Nutrient DWS documentation at {output_file}.")
33+
print(
34+
f"📄 Updated Windsurf Rules to point to Nutrient DWS documentation at {output_file}."
35+
)
3436
except Exception as err:
3537
print(f"Failed to update Windsurf Rule: {err}", file=sys.stderr)
3638
sys.exit(1)

0 commit comments

Comments
 (0)