Skip to content

Commit da59a80

Browse files
Update .pre-commit-config.yaml
1 parent 0549f13 commit da59a80

File tree

16 files changed

+575
-840
lines changed

16 files changed

+575
-840
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@ jobs:
3131
python-version: ${{ matrix.python-version }}
3232
cache-dependency-path: "pyproject.toml"
3333

34-
- name: install invoke
35-
run: pip install invoke
36-
3734
- name: install
38-
run: inv install
35+
run: pip install .
3936

4037
- name: lint
41-
run: inv lint
38+
run: snok lint
4239

4340
- name: test
44-
run: inv test
41+
run: snok test
4542

4643
- name: upload coverage
4744
if: github.ref == 'refs/heads/main'

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
python-version: ${{ matrix.python-version }}
3232
cache-dependency-path: "pyproject.toml"
3333

34-
- name: install invoke
35-
run: pip install invoke
34+
- name: install
35+
run: pip install build
3636

3737
- name: build
38-
run: inv build
38+
run: python -m build
3939

4040
- name: publish
4141
uses: pypa/gh-action-pypi-publish@release/v1

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
hooks:
1919
- id: black
2020
- repo: https://github.com/charliermarsh/ruff-pre-commit
21-
rev: v0.0.274
21+
rev: v0.0.275
2222
hooks:
2323
- id: ruff
2424

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,19 @@ Snok is designed to leverage the best tools and packages that exist in the Pytho
4242
## 🎉 Featuring
4343

4444
- Package generation
45-
- Task management with `invoke`
45+
- Built-in dependency management
4646
- Packaging with `setuptools`
47-
- Linting with `ruff` and `black`
47+
- Linting and formatting with `ruff` and `black`
4848
- Type checking with `mypy`
4949
- Testing with `pytest`
5050

5151
## 🤩 Coming Soon
5252

53-
- Web application generation with `fastapi` and `htmx`
5453
- Database integration with `pydantic` and `sqlmodel`
54+
- Web application generation with `fastapi` and `htmx`
5555
- Production ready deployment stacks with `nix`, `docker`, `skaffold` and `kustomize`
5656
- AI framework integrations with `pytorch` and `langchain`
57+
- Documentation site generation with `mkdocs`
5758

5859
Check out the latest [issues](https://github.com/anthonycorletti/snok/issues) and [pull requests](https://github.com/anthonycorletti/snok/pulls) to see what's coming soon!
5960

@@ -78,22 +79,22 @@ Create a new package with:
7879
snok new mypackage
7980
```
8081

81-
Snok uses `invoke` to manage tasks, like installing dependencies, running tests, and more.
82+
To install dependencies:
8283

8384
```sh
84-
inv --list
85+
snok install
8586
```
8687

87-
To install dependencies:
88+
To add a new dependency:
8889

8990
```sh
90-
inv add fastapi
91+
snok add fastapi
9192
```
9293

93-
To uninstall dependencies:
94+
To remove a dependency:
9495

9596
```sh
96-
inv remove fastapi
97+
snok remove fastapi
9798
```
9899

99100
## 🫶 How can I help?

docs/index.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,19 @@ Snok is designed to leverage the best tools and packages that exist in the Pytho
4242
## 🎉 Featuring
4343

4444
- Package generation
45-
- Task management with `invoke`
45+
- Built-in dependency management
4646
- Packaging with `setuptools`
47-
- Linting with `ruff` and `black`
47+
- Linting and formatting with `ruff` and `black`
4848
- Type checking with `mypy`
4949
- Testing with `pytest`
5050

5151
## 🤩 Coming Soon
5252

53-
- Web application generation with `fastapi` and `htmx`
5453
- Database integration with `pydantic` and `sqlmodel`
54+
- Web application generation with `fastapi` and `htmx`
5555
- Production ready deployment stacks with `nix`, `docker`, `skaffold` and `kustomize`
5656
- AI framework integrations with `pytorch` and `langchain`
57+
- Documentation site generation with `mkdocs`
5758

5859
Check out the latest [issues](https://github.com/anthonycorletti/snok/issues) and [pull requests](https://github.com/anthonycorletti/snok/pulls) to see what's coming soon!
5960

@@ -78,22 +79,22 @@ Create a new package with:
7879
snok new mypackage
7980
```
8081

81-
Snok uses `invoke` to manage tasks, like installing dependencies, running tests, and more.
82+
To install dependencies:
8283

8384
```sh
84-
inv --list
85+
snok install
8586
```
8687

87-
To install dependencies:
88+
To add a new dependency:
8889

8990
```sh
90-
inv add fastapi
91+
snok add fastapi
9192
```
9293

93-
To uninstall dependencies:
94+
To remove a dependency:
9495

9596
```sh
96-
inv remove fastapi
97+
snok remove fastapi
9798
```
9899

99100
## 🫶 How can I help?

pyproject.toml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
"coverage>=6.1.1",
1919
"fastapi>=0.97.0",
2020
"gunicorn>=20.1.0",
21-
"invoke>=2.0.0",
21+
"httpx>=0.24.1",
2222
"jinja2>=3.1.2",
2323
"mypy>=0.910",
2424
"packaging>=21.0",
@@ -27,11 +27,13 @@ dependencies = [
2727
"pytest-cov>=3.0.0",
2828
"pytest-xdist>=3.3.1",
2929
"pytest>=6.2.5",
30+
"requests>=2.26.0",
3031
"rich>=10.12.0",
3132
"ruff>=0.0.98",
3233
"setuptools>=67.8.0",
3334
"toml>=0.10.2",
3435
"typer>=0.7.0",
36+
"types-requests>=2.26.0",
3537
"types-toml>=0.1.0",
3638
"uvicorn>=0.15.0",
3739
"wheel>=0.36",
@@ -45,9 +47,10 @@ text = "MIT"
4547

4648
[project.optional-dependencies]
4749
dev = [
50+
"invoke>=1.6.0",
4851
"mdx-include>=1.4.2",
49-
"mkdocs>=1.4.2",
5052
"mkdocs-material>=9.1.5",
53+
"mkdocs>=1.4.2",
5154
]
5255

5356
[project.urls]
@@ -57,14 +60,11 @@ Documentation = "https://snok.corletti.xyz"
5760
[project.scripts]
5861
snok = "snok.cli:app"
5962

60-
[tool.setuptools.package-data]
61-
snok = ["py.typed", "templates/**/*"]
62-
63-
[tool.setuptools.dynamic]
64-
version = {attr = "snok.__version__"}
65-
66-
[tool.setuptools.packages.find]
67-
exclude = ["tests"]
63+
[tool.snok]
64+
sources = [
65+
"snok",
66+
"tests",
67+
]
6868

6969
[tool.ruff]
7070
line-length = 88
@@ -129,10 +129,6 @@ force-exclude = '''
129129
[tool.mypy]
130130
ignore_missing_imports = true
131131
disallow_untyped_defs = true
132-
mypy_path = [
133-
"snok",
134-
"tests",
135-
]
136132
exclude = [
137133
"dist",
138134
"build",
@@ -143,6 +139,12 @@ exclude = [
143139
[tool.ruff.pydocstyle]
144140
convention = "google"
145141

142+
[tool.setuptools.package-data]
143+
snok = [
144+
"py.typed",
145+
"templates/**/*",
146+
]
147+
146148
[tool.pytest.ini_options]
147149
addopts = [
148150
"-n",
@@ -177,3 +179,11 @@ directory = "htmlcov"
177179

178180
[tool.coverage.xml]
179181
output = "coverage.xml"
182+
183+
[tool.setuptools.dynamic.version]
184+
attr = "snok.__version__"
185+
186+
[tool.setuptools.packages.find]
187+
exclude = [
188+
"tests",
189+
]

snok/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""snok"""
22

3-
__version__ = "0.0.7"
3+
__version__ = "0.0.8"

0 commit comments

Comments
 (0)