Skip to content

Commit 6679255

Browse files
Merge pull request #4 from javidahmed64592/update-codebase-structure
Update codebase structure
2 parents d4f3468 + c4902d6 commit 6679255

6 files changed

Lines changed: 44 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ on:
99
- main
1010

1111
jobs:
12+
validate-pyproject:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v5
18+
with:
19+
enable-cache: true
20+
cache-dependency-glob: "uv.lock"
21+
- name: "Set up Python"
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version-file: ".python-version"
25+
- name: Install dependencies
26+
run: |
27+
uv sync --extra dev
28+
- name: Validate pyproject.toml
29+
run: |
30+
uv run validate-pyproject pyproject.toml
1231
ruff:
1332
runs-on: ubuntu-latest
1433
steps:

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Javid Ahmed
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
File renamed without changes.

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[build-system]
2-
# Minimum requirements for the build system to execute.
3-
# PEP 508 specifications.
4-
requires = ["setuptools>=61.0", "wheel"]
5-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
64

75
[project]
86
name = "example"
@@ -30,6 +28,7 @@ dev = [
3028
"pytest",
3129
"pytest-cov",
3230
"tomli",
31+
"validate-pyproject>=0.24.1",
3332
]
3433

3534
[project.urls]
@@ -77,7 +76,7 @@ exclude = [
7776
]
7877

7978
extend-exclude = [
80-
"src/**/__init__.py",
79+
"**/__init__.py",
8180
]
8281

8382
[tool.ruff.lint]

0 commit comments

Comments
 (0)