Skip to content

Commit 8b65915

Browse files
Update pyproject.toml
1 parent 43e6cdc commit 8b65915

File tree

3 files changed

+38
-5
lines changed

3 files changed

+38
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
*.pyc
22
/env/
3+
/.idea/
4+
/venv/
5+
*.egg-info

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Next, configure your local environment with virtualenv and install local depende
2525
```bash
2626
python3 -m venv env
2727
source env/bin/activate
28-
pip install -r dev_requirements.txt
28+
pip install -e '.[dev]'
2929
```
3030

3131
Create a database for the application:

pyproject.toml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,39 @@
1+
[project]
2+
name = "pgocmmitfest"
3+
description = "Commitfest app for the PostgreSQL community"
4+
dynamic = ["version"]
5+
authors = [{ name = "xxx", email = "yyy" }]
6+
readme = "README.md"
7+
licsense = "PostgreSQL"
8+
dependencies = [
9+
"django>=4.2,<5.0",
10+
"psycopg2",
11+
"simplejson",
12+
"requests",
13+
"pycryptodomex",
14+
]
15+
16+
[project.optional-dependencies]
17+
dev = [
18+
"uwsgi",
19+
"pycodestyle",
20+
"ruff",
21+
"djhtml",
22+
]
23+
24+
[tool.setuptools.packages.find]
25+
include = ["pgcommitfest*"]
26+
27+
[tool.pycodestyle]
28+
statistics = true
29+
ignore = ["E402", "E501", "W503"]
30+
max-line-length = 120
31+
132
[tool.ruff]
2-
# line-length = 120
33+
line-length = 120
334

435
[tool.ruff.format]
5-
# quote-style = "preserve"
36+
quote-style = "preserve"
637

738
[tool.ruff.lint]
839
extend-select = ["I"]
@@ -18,5 +49,4 @@ section-order = [
1849
]
1950

2051
[tool.ruff.lint.isort.sections]
21-
# Group all Django imports into a separate section.
22-
"django" = ["django"]
52+
django = ["django"]

0 commit comments

Comments
 (0)