Skip to content

Commit cf44897

Browse files
authored
Merge pull request #139 from a5chin/feature/spell-checker
Add Code Spell Checker
2 parents 0cc1e2d + 40ef271 commit cf44897

File tree

11 files changed

+143
-25
lines changed

11 files changed

+143
-25
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"njpwerner.autodocstring",
2424
"redhat.vscode-yaml",
2525
"shardulm94.trailing-spaces",
26+
"streetsidesoftware.code-spell-checker",
2627
"tamasfe.even-better-toml",
2728
"yzhang.markdown-all-in-one"
2829
]

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Relates to #
4949

5050
### Code Quality & Tests
5151
- [ ] All functions/methods have type hints
52-
- [ ] Code has docstrings for public APIs
52+
- [ ] Code has docstring for public APIs
5353
- [ ] New test files follow `test__*.py` naming convention
5454
- [ ] Tests are meaningful and cover edge cases
5555

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Creating coverage folder
5959
run: mkdir -p coverage
6060

61-
- name: Coverage Bagdge
61+
- name: Coverage Badge
6262
uses: tj-actions/coverage-badge-py@v2
6363
with:
6464
output: coverage/coverage.svg

.vscode/cspell.json

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"language": "en",
3+
"ignorePaths": [
4+
".venv",
5+
"uv.lock"
6+
],
7+
"words": [
8+
"addopts",
9+
"anyio",
10+
"apdisk",
11+
"autoflake",
12+
"buildkit",
13+
"buildx",
14+
"caplog",
15+
"celerybeat",
16+
"charliermarsh",
17+
"classmethod",
18+
"commitable",
19+
"configfile",
20+
"connor",
21+
"contextlib",
22+
"cookiecutter",
23+
"cooldown",
24+
"coveragerc",
25+
"cython",
26+
"dhoeric",
27+
"direnv",
28+
"dmypy",
29+
"dockerfiles",
30+
"donotpresent",
31+
"exiasr",
32+
"fastapi",
33+
"fontawesome",
34+
"fseventsd",
35+
"googlecloud",
36+
"htmlcov",
37+
"imread",
38+
"ipykernel",
39+
"ipynb",
40+
"ipython",
41+
"isort",
42+
"junitxml",
43+
"kevinrose",
44+
"kwargs",
45+
"levelname",
46+
"levelno",
47+
"libgl",
48+
"libglib",
49+
"linenums",
50+
"mishakav",
51+
"mkdocs",
52+
"monkeypatch",
53+
"mosapride",
54+
"mypy",
55+
"njpwerner",
56+
"norecursedirs",
57+
"nosetests",
58+
"noxfile",
59+
"nullcontext",
60+
"opencontainers",
61+
"opencv",
62+
"pipefail",
63+
"pipenv",
64+
"pipfile",
65+
"pluggy",
66+
"posargs",
67+
"pybuilder",
68+
"pycache",
69+
"pycodestyle",
70+
"pydantic",
71+
"pydocstyle",
72+
"pyenv",
73+
"pyflakes",
74+
"pyflow",
75+
"pymdownx",
76+
"pypa",
77+
"pypackages",
78+
"pyproject",
79+
"pyrightconfig",
80+
"pytest",
81+
"pythondontwritebytecode",
82+
"pythonpath",
83+
"pythonunbuffered",
84+
"pytype",
85+
"pyupgrade",
86+
"qodo",
87+
"redoc",
88+
"rootdir",
89+
"ropeproject",
90+
"scrapy",
91+
"sdist",
92+
"sessionmaker",
93+
"shardulm",
94+
"spyder",
95+
"spyderproject",
96+
"spyproject",
97+
"sqlalchemy",
98+
"stmts",
99+
"superfences",
100+
"tamasfe",
101+
"testpaths",
102+
"timemachine",
103+
"toolsai",
104+
"typer",
105+
"uline",
106+
"usecases",
107+
"usefixtures",
108+
"usermod",
109+
"venv",
110+
"webassets",
111+
"yzhang",
112+
"zenkaku"
113+
]
114+
}

.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"pkief.material-icon-theme",
1717
"redhat.vscode-yaml",
1818
"shardulm94.trailing-spaces",
19+
"streetsidesoftware.code-spell-checker",
1920
"tamasfe.even-better-toml",
2021
"usernamehw.errorlens",
2122
"yzhang.markdown-all-in-one"

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ def process_data(items, max_count=10):
205205
...
206206
```
207207

208-
### Docstrings
208+
### Docstring
209209

210-
All public functions, classes, and modules must have docstrings:
210+
All public functions, classes, and modules must have docstring:
211211

212212
```python
213213
def calculate_total(items: list[float], tax_rate: float) -> float:
@@ -458,7 +458,7 @@ uv sync
458458

459459
Before submitting your PR, verify:
460460

461-
- [ ] Code follows project standards (Ruff, Pyright, type hints, docstrings)
461+
- [ ] Code follows project standards (Ruff, Pyright, type hints, docstring)
462462
- [ ] All tests pass: `uv run nox -s test` (coverage ≥ 75%)
463463
- [ ] Linting passes: `uv run nox -s lint -- --pyright --ruff`
464464
- [ ] Code is formatted: `uv run nox -s fmt`

docs/configurations/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ If you modify configurations, document why:
160160
# ruff.toml
161161
[lint]
162162
ignore = [
163-
"D100", # Exclude module docstrings (team decision 2024-01-15)
163+
"D100", # Exclude module docstring (team decision 2024-01-15)
164164
]
165165
```
166166

docs/configurations/uv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# uv Configations
1+
# uv Configurations
22

33
!!! TIP
44
Official documentation for uv is available at [https://docs.astral.sh/uv](https://docs.astral.sh/uv)

docs/guides/test.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,37 @@ uv run pytest
99
```
1010

1111
```sh
12-
============================================= test session starts =============================================
13-
platform linux -- Python 3.12.6, pytest-8.3.4, pluggy-1.5.0
14-
rootdir: /workspaces/python-uv
12+
================================================ test session starts ================================================
13+
platform linux -- Python 3.14.0, pytest-9.0.1, pluggy-1.6.0
14+
rootdir: /workspace
1515
configfile: pytest.ini
1616
testpaths: tests
17-
plugins: cov-6.0.0
18-
collected 4 items
17+
plugins: anyio-4.11.0, cov-7.0.0
18+
collected 8 items
1919

20-
tests/tools/test__logger.py .... [100%]
20+
tests/tools/test__config.py .. [ 25%]
21+
tests/tools/test__logger.py .... [ 75%]
22+
tests/tools/test__tracer.py .. [100%]
23+
24+
================================================ tests coverage ================================================
25+
________________________________________ coverage: platform linux, python 3.14.0-final-0 _________________________________________
2126

22-
---------- coverage: platform linux, python 3.12.6-final-0 -----------
2327
Name Stmts Miss Branch BrPart Cover Missing
2428
-------------------------------------------------------------------------
25-
tests/tools/test__logger.py 24 0 0 0 100%
26-
tools/__init__.py 2 0 0 0 100%
27-
tools/logger/__init__.py 5 0 0 0 100%
29+
tools/config/fastapi.py 2 0 0 0 100%
30+
tools/config/settings.py 20 0 0 0 100%
2831
tools/logger/color.py 12 0 0 0 100%
29-
tools/logger/googlecloud.py 10 0 0 0 100%
32+
tools/logger/googlecloud.py 6 0 0 0 100%
3033
tools/logger/local.py 12 0 0 0 100%
3134
tools/logger/logger.py 23 0 2 0 100%
3235
tools/logger/style.py 7 0 0 0 100%
3336
tools/logger/type.py 5 0 0 0 100%
37+
tools/tracer/timer.py 16 0 0 0 100%
3438
-------------------------------------------------------------------------
35-
TOTAL 100 0 2 0 100%
39+
TOTAL 103 0 2 0 100%
3640
Coverage HTML written to dir htmlcov
37-
3841
Required test coverage of 75% reached. Total coverage: 100.00%
39-
40-
============================================== 4 passed in 2.00s ==============================================
42+
================================================ 8 passed in 1.23s ================================================
4143
```
4244

4345
## Run pytest on VS Code

docs/guides/tools/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class Settings(BaseSettings):
142142
Then in your `.env` file:
143143

144144
```bash
145-
DATABASE_URL=postgresql://user:pass@localhost/dbname
145+
DATABASE_URL=postgresql://user:pass@localhost/db_name
146146
SECRET_KEY=your-secret-key-here
147147
REDIS_HOST=redis.example.com
148148
REDIS_PORT=6380
@@ -299,7 +299,7 @@ class Settings(BaseSettings):
299299

300300
### 4. Document Your Settings
301301

302-
Add docstrings to custom settings:
302+
Add docstring to custom settings:
303303

304304
```python
305305
class Settings(BaseSettings):

0 commit comments

Comments
 (0)