Skip to content

Commit

Permalink
Merge pull request #16 from eadwinCode/pyproject_fix
Browse files Browse the repository at this point in the history
fix: Cleaned up PyProject.toml
  • Loading branch information
eadwinCode authored Nov 19, 2024
2 parents e7e5cbc + 77221bb commit 6704022
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ clean: ## Removing cached python compiled files
find . -name .ruff_cache | xargs rm -rfv

install:clean ## Install dependencies
pip install -r requirements.txt
flit install --deps develop --symlink

install-full:install ## Install dependencies with pre-commit
pre-commit install -f

lint:fmt ## Run code linters
Expand Down
19 changes: 2 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ classifiers = [
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: AsyncIO",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP",
Expand All @@ -51,23 +53,6 @@ requires-python = ">=3.8"
[tool.flit.metadata.urls]
Documentation = "https://github.com/eadwinCode/ninja-schema"

[tool.flit.metadata.requires-extra]
test = [
"pytest",
"pytest-cov",
"pytest-django",
"pytest-asyncio",
"mypy == 1.13.0",
"ruff == 0.7.4",
"django-stubs",
]
dev = [
"pre-commit"
]
doc = []



[tool.ruff]
select = [
"E", # pycodestyle errors
Expand Down
7 changes: 7 additions & 0 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
django-stubs
mypy == 1.13.0
pytest
pytest-asyncio
pytest-cov
pytest-django
ruff == 0.7.4
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-e .
-r requirements-tests.txt

pre-commit

0 comments on commit 6704022

Please sign in to comment.