Skip to content

Commit 71d1883

Browse files
committed
Versioning files
1 parent 78a25d5 commit 71d1883

File tree

9 files changed

+42
-262
lines changed

9 files changed

+42
-262
lines changed

.gitignore

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
*
22

33
!.github/
4+
!.github/**/
45
!assets/
6+
!assets/**/
57
!.editorconfig
68
!.gitattributes
79
!.gitignore
8-
!.justfile
9-
!.pre-commit-config.yaml
10+
!.gitmodules
11+
!.python-version
12+
!example.env
13+
!LICENSE
1014
!README.md
1115

12-
!src/
13-
!src/**/
14-
!shared/
15-
!shared/**/
1616
!scripts/
1717
!scripts/**/
18+
!shared/
19+
!shared/**/
20+
!src/
21+
!src/**/
22+
!tests/
23+
!tests/**/
1824

1925
!*.md
2026
!*.svg
2127
!*.png
2228
!*.nix
2329
!*.lock
24-
!*.py
2530
!*.toml
2631
!*.yaml
32+
!*.yml
2733
!*.ini
34+
!*.py

.justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ clean:
6464
# Format the project
6565
format:
6666
@echo "Formatting..."
67-
@nixfmt .
67+
@find . -name "*.nix" -type f -exec nixfmt {} \;
6868

6969
# Add scripts
7070
add_scripts:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
rev: "v0.6.3"
4040
hooks:
4141
- id: ruff
42-
args: [--exit-non-zero-on-fix]
42+
args: [--fix]
4343
- id: ruff-format
4444
- repo: https://github.com/pre-commit/mirrors-prettier
4545
rev: "v3.0.3"

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
15
[project]
26
name = "modern_python"
37
version = "0.0.1"
48
description = "A template for developing production-ready Python applications."
59
authors = [
610
{ name = "Miguel Villa Floran", email = "miguel.villafloran@gmail.com" },
711
]
8-
requires-python = ">=3.10"
12+
requires-python = ">=3.11,<3.12"
913
readme = "README.md"
1014
license = { file = "LICENSE" }
1115

shared/utils/pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
15
[project]
26
name = "utils"
37
version = "0.0.0"
48
description = "Utility functions"
59
authors = [
610
{ name = "Miguel Villa Floran", email = "miguel.villafloran@gmail.com" },
711
]
8-
requires-python = ">=3.10"
12+
requires-python = ">=3.11,<3.12"
913
readme = "README.md"
10-
dependencies = [
11-
"dotenv>=0.9.9",
12-
]
1314

14-
[build-system]
15-
requires = ["hatchling"]
16-
build-backend = "hatchling.build"
15+
dependencies = ["dotenv>=0.9.9"]

shell.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
{ pkgs ? import <nixpkgs> { } }:
1+
{
2+
pkgs ? import <nixpkgs> { },
3+
}:
24

35
pkgs.mkShell {
46
buildInputs = with pkgs; [
5-
git # Git
67
python311 # Python 3.11
78
uv # Python package manager
9+
nixfmt # Nix formatter
810
just # Just
9-
nixfmt-classic # Nix formatter
1011
];
1112

1213
# Shell hook to set up environment

src/core/pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
15
[project]
26
name = "core"
37
version = "0.0.0"
48
description = "Core functionality"
59
authors = [
610
{ name = "Miguel Villa Floran", email = "miguel.villafloran@gmail.com" },
711
]
8-
requires-python = ">=3.10"
12+
requires-python = ">=3.11,<3.12"
913
readme = "README.md"
14+
1015
dependencies = ["utils", "typer>=0.12.5"]
1116

1217
[project.scripts]
1318
core = "core.cli:app"
1419

15-
[build-system]
16-
requires = ["hatchling"]
17-
build-backend = "hatchling.build"
18-
1920
[tool.uv.sources]
2021
utils = { workspace = true }

uv.lock

Lines changed: 4 additions & 237 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)