-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move everything to pyproject.toml #19
- Loading branch information
1 parent
c2233d6
commit aef2a20
Showing
9 changed files
with
204 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
# Intended to run in a docker container. Called by `make requirements.txt` | ||
set -euf -o pipefail | ||
|
||
pip install --disable-pip-version-check --root-user-action=ignore -U pip pip-tools | ||
# Compile main requirements | ||
pip-compile -v \ | ||
--resolver=backtracking \ | ||
--generate-hashes \ | ||
--strip-extras \ | ||
--output-file=requirements.txt \ | ||
pyproject.toml | ||
|
||
# Compile dev requirements | ||
pip-compile -v \ | ||
--constraint $(pwd)/requirements.txt \ | ||
--resolver=backtracking \ | ||
--generate-hashes \ | ||
--extra=dev \ | ||
--output-file=requirements-dev.txt \ | ||
pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,47 @@ | ||
[tool.black] | ||
exclude = ''' | ||
/( | ||
\.mypy_cache | ||
| \.venv | ||
| migrations | ||
| node_modules | ||
)/ | ||
''' | ||
|
||
[tool.isort] | ||
profile = "black" | ||
multi_line_output = 3 | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "django-layout" | ||
version = "4.0" | ||
dependencies = [ | ||
"django==5.*", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"django-stubs", | ||
"mypy", | ||
"pip-tools", | ||
"readable-log-formatter", | ||
"ruff", | ||
] | ||
|
||
[tool.setuptools] | ||
packages = { "find" = { } } | ||
include-package-data = true | ||
|
||
[tool.ruff] | ||
target-version = "py12" | ||
exclude = ["migrations"] | ||
select = ["ALL"] | ||
ignore = [ | ||
"ANN101", # Missing Type Annotation for "self" | ||
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`" | ||
"ARG001", # Unused function argument (request, ...) | ||
"ARG002", # Unused method argument (*args, **kwargs) | ||
"D", # Missing or badly formatted docstrings | ||
"FBT", # Flake Boolean Trap (don't use arg=True in functions) | ||
"RUF012", # Mutable class attributes https://github.com/astral-sh/ruff/issues/5243 | ||
|
||
"COM812", # (ruff format) Checks for the absence of trailing commas | ||
"ISC001", # (ruff format) Checks for implicitly concatenated strings on a single line | ||
] | ||
|
||
[tool.ruff.extend-per-file-ignores] | ||
# Also ignore `E402` in all `__init__.py` files. | ||
"test_*.py" = [ | ||
"S101", # S101 Use of `assert` detected | ||
"PLR2004", # Magic value used in comparison, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile --constraint=/Users/alexclark/Developer/lincolnloop/django-layout/requirements.txt --extra=dev --generate-hashes --output-file=requirements-dev.txt pyproject.toml | ||
# | ||
asgiref==3.7.2 \ | ||
--hash=sha256:89b2ef2247e3b562a16eef663bc0e2e703ec6468e2fa8a5cd61cd449786d4f6e \ | ||
--hash=sha256:9e0ce3aa93a819ba5b45120216b23878cf6e8525eb3848653452b4192b92afed | ||
# via | ||
# -c /Users/alexclark/Developer/lincolnloop/django-layout/requirements.txt | ||
# django | ||
build==1.0.3 \ | ||
--hash=sha256:538aab1b64f9828977f84bc63ae570b060a8ed1be419e7870b8b4fc5e6ea553b \ | ||
--hash=sha256:589bf99a67df7c9cf07ec0ac0e5e2ea5d4b37ac63301c4986d1acb126aa83f8f | ||
# via pip-tools | ||
click==8.1.7 \ | ||
--hash=sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28 \ | ||
--hash=sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de | ||
# via pip-tools | ||
django==5.0.2 \ | ||
--hash=sha256:56ab63a105e8bb06ee67381d7b65fe6774f057e41a8bab06c8020c8882d8ecd4 \ | ||
--hash=sha256:b5bb1d11b2518a5f91372a282f24662f58f66749666b0a286ab057029f728080 | ||
# via | ||
# -c /Users/alexclark/Developer/lincolnloop/django-layout/requirements.txt | ||
# django-layout (pyproject.toml) | ||
# django-stubs | ||
# django-stubs-ext | ||
django-stubs==4.2.7 \ | ||
--hash=sha256:4cf4de258fa71adc6f2799e983091b9d46cfc67c6eebc68fe111218c9a62b3b8 \ | ||
--hash=sha256:8ccd2ff4ee5adf22b9e3b7b1a516d2e1c2191e9d94e672c35cc2bc3dd61e0f6b | ||
# via django-layout (pyproject.toml) | ||
django-stubs-ext==4.2.7 \ | ||
--hash=sha256:45a5d102417a412e3606e3c358adb4744988a92b7b58ccf3fd64bddd5d04d14c \ | ||
--hash=sha256:519342ac0849cda1559746c9a563f03ff99f636b0ebe7c14b75e816a00dfddc3 | ||
# via django-stubs | ||
mypy==1.8.0 \ | ||
--hash=sha256:028cf9f2cae89e202d7b6593cd98db6759379f17a319b5faf4f9978d7084cdc6 \ | ||
--hash=sha256:2afecd6354bbfb6e0160f4e4ad9ba6e4e003b767dd80d85516e71f2e955ab50d \ | ||
--hash=sha256:2b5b6c721bd4aabaadead3a5e6fa85c11c6c795e0c81a7215776ef8afc66de02 \ | ||
--hash=sha256:42419861b43e6962a649068a61f4a4839205a3ef525b858377a960b9e2de6e0d \ | ||
--hash=sha256:42c6680d256ab35637ef88891c6bd02514ccb7e1122133ac96055ff458f93fc3 \ | ||
--hash=sha256:485a8942f671120f76afffff70f259e1cd0f0cfe08f81c05d8816d958d4577d3 \ | ||
--hash=sha256:4c886c6cce2d070bd7df4ec4a05a13ee20c0aa60cb587e8d1265b6c03cf91da3 \ | ||
--hash=sha256:4e6d97288757e1ddba10dd9549ac27982e3e74a49d8d0179fc14d4365c7add66 \ | ||
--hash=sha256:4ef4be7baf08a203170f29e89d79064463b7fc7a0908b9d0d5114e8009c3a259 \ | ||
--hash=sha256:51720c776d148bad2372ca21ca29256ed483aa9a4cdefefcef49006dff2a6835 \ | ||
--hash=sha256:52825b01f5c4c1c4eb0db253ec09c7aa17e1a7304d247c48b6f3599ef40db8bd \ | ||
--hash=sha256:538fd81bb5e430cc1381a443971c0475582ff9f434c16cd46d2c66763ce85d9d \ | ||
--hash=sha256:5c1538c38584029352878a0466f03a8ee7547d7bd9f641f57a0f3017a7c905b8 \ | ||
--hash=sha256:6ff8b244d7085a0b425b56d327b480c3b29cafbd2eff27316a004f9a7391ae07 \ | ||
--hash=sha256:7178def594014aa6c35a8ff411cf37d682f428b3b5617ca79029d8ae72f5402b \ | ||
--hash=sha256:720a5ca70e136b675af3af63db533c1c8c9181314d207568bbe79051f122669e \ | ||
--hash=sha256:7f1478736fcebb90f97e40aff11a5f253af890c845ee0c850fe80aa060a267c6 \ | ||
--hash=sha256:855fe27b80375e5c5878492f0729540db47b186509c98dae341254c8f45f42ae \ | ||
--hash=sha256:8963b83d53ee733a6e4196954502b33567ad07dfd74851f32be18eb932fb1cb9 \ | ||
--hash=sha256:9261ed810972061388918c83c3f5cd46079d875026ba97380f3e3978a72f503d \ | ||
--hash=sha256:99b00bc72855812a60d253420d8a2eae839b0afa4938f09f4d2aa9bb4654263a \ | ||
--hash=sha256:ab3c84fa13c04aeeeabb2a7f67a25ef5d77ac9d6486ff33ded762ef353aa5592 \ | ||
--hash=sha256:afe3fe972c645b4632c563d3f3eff1cdca2fa058f730df2b93a35e3b0c538218 \ | ||
--hash=sha256:d19c413b3c07cbecf1f991e2221746b0d2a9410b59cb3f4fb9557f0365a1a817 \ | ||
--hash=sha256:df9824ac11deaf007443e7ed2a4a26bebff98d2bc43c6da21b2b64185da011c4 \ | ||
--hash=sha256:e46f44b54ebddbeedbd3d5b289a893219065ef805d95094d16a0af6630f5d410 \ | ||
--hash=sha256:f5ac9a4eeb1ec0f1ccdc6f326bcdb464de5f80eb07fb38b5ddd7b0de6bc61e55 | ||
# via django-layout (pyproject.toml) | ||
mypy-extensions==1.0.0 \ | ||
--hash=sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d \ | ||
--hash=sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782 | ||
# via mypy | ||
packaging==23.2 \ | ||
--hash=sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5 \ | ||
--hash=sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7 | ||
# via build | ||
pip-tools==7.3.0 \ | ||
--hash=sha256:8717693288720a8c6ebd07149c93ab0be1fced0b5191df9e9decd3263e20d85e \ | ||
--hash=sha256:8e9c99127fe024c025b46a0b2d15c7bd47f18f33226cf7330d35493663fc1d1d | ||
# via django-layout (pyproject.toml) | ||
pyproject-hooks==1.0.0 \ | ||
--hash=sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8 \ | ||
--hash=sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5 | ||
# via build | ||
readable-log-formatter==0.1.4 \ | ||
--hash=sha256:3cbbd4737074e1ffa13d62c68fa5d10019737971ac33656fe328766e18e72a89 \ | ||
--hash=sha256:b9054caa2b3ad4d3e49f7d0dda5f53955396912d46a7b14b2eda814e4a1f4550 | ||
# via django-layout (pyproject.toml) | ||
ruff==0.2.1 \ | ||
--hash=sha256:0034d5b6323e6e8fe91b2a1e55b02d92d0b582d2953a2b37a67a2d7dedbb7acc \ | ||
--hash=sha256:00a818e2db63659570403e44383ab03c529c2b9678ba4ba6c105af7854008105 \ | ||
--hash=sha256:0a725823cb2a3f08ee743a534cb6935727d9e47409e4ad72c10a3faf042ad5ba \ | ||
--hash=sha256:13471684694d41ae0f1e8e3a7497e14cd57ccb7dd72ae08d56a159d6c9c3e30e \ | ||
--hash=sha256:3b42b5d8677cd0c72b99fcaf068ffc62abb5a19e71b4a3b9cfa50658a0af02f1 \ | ||
--hash=sha256:6b95ac9ce49b4fb390634d46d6ece32ace3acdd52814671ccaf20b7f60adb232 \ | ||
--hash=sha256:7022d66366d6fded4ba3889f73cd791c2d5621b2ccf34befc752cb0df70f5fad \ | ||
--hash=sha256:a11567e20ea39d1f51aebd778685582d4c56ccb082c1161ffc10f79bebe6df35 \ | ||
--hash=sha256:be60592f9d218b52f03384d1325efa9d3b41e4c4d55ea022cd548547cc42cd2b \ | ||
--hash=sha256:c92db7101ef5bfc18e96777ed7bc7c822d545fa5977e90a585accac43d22f18a \ | ||
--hash=sha256:dc586724a95b7d980aa17f671e173df00f0a2eef23f8babbeee663229a938fec \ | ||
--hash=sha256:dd81b911d28925e7e8b323e8d06951554655021df8dd4ac3045d7212ac4ba080 \ | ||
--hash=sha256:e3affdcbc2afb6f5bd0eb3130139ceedc5e3f28d206fe49f63073cb9e65988e0 \ | ||
--hash=sha256:e5cb5526d69bb9143c2e4d2a115d08ffca3d8e0fddc84925a7b54931c96f5c02 \ | ||
--hash=sha256:efababa8e12330aa94a53e90a81eb6e2d55f348bc2e71adbf17d9cad23c03ee6 \ | ||
--hash=sha256:f3ef052283da7dec1987bba8d8733051c2325654641dfe5877a4022108098683 \ | ||
--hash=sha256:fbd2288890b88e8aab4499e55148805b58ec711053588cc2f0196a44f6e3d855 | ||
# via django-layout (pyproject.toml) | ||
sqlparse==0.4.4 \ | ||
--hash=sha256:5430a4fe2ac7d0f93e66f1efc6e1338a41884b7ddf2a350cedd20ccc4d9d28f3 \ | ||
--hash=sha256:d446183e84b8349fa3061f0fe7f06ca94ba65b426946ffebe6e3e8295332420c | ||
# via | ||
# -c /Users/alexclark/Developer/lincolnloop/django-layout/requirements.txt | ||
# django | ||
types-pytz==2024.1.0.20240203 \ | ||
--hash=sha256:9679eef0365db3af91ef7722c199dbb75ee5c1b67e3c4dd7bfbeb1b8a71c21a3 \ | ||
--hash=sha256:c93751ee20dfc6e054a0148f8f5227b9a00b79c90a4d3c9f464711a73179c89e | ||
# via django-stubs | ||
types-pyyaml==6.0.12.12 \ | ||
--hash=sha256:334373d392fde0fdf95af5c3f1661885fa10c52167b14593eb856289e1855062 \ | ||
--hash=sha256:c05bc6c158facb0676674b7f11fe3960db4f389718e19e62bd2b84d6205cfd24 | ||
# via django-stubs | ||
typing-extensions==4.9.0 \ | ||
--hash=sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783 \ | ||
--hash=sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd | ||
# via | ||
# django-stubs | ||
# django-stubs-ext | ||
# mypy | ||
wheel==0.42.0 \ | ||
--hash=sha256:177f9c9b0d45c47873b619f5b650346d632cdc35fb5e4d25058e09c9e581433d \ | ||
--hash=sha256:c45be39f7882c9d34243236f2d63cbd58039e360f85d0913425fbd7ceea617a8 | ||
# via pip-tools | ||
|
||
# WARNING: The following packages were not pinned, but pip requires them to be | ||
# pinned when the requirements file includes hashes and the requirement is not | ||
# satisfied by a package already installed. Consider using the --allow-unsafe flag. | ||
# pip | ||
# setuptools |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.