Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a47fed6

Browse files
Fill-in the pyproject.toml (#72)
Python is converging on storing everything in a single toml config. This starts using that for this project.
1 parent 1b352c1 commit a47fed6

File tree

7 files changed

+34
-20
lines changed

7 files changed

+34
-20
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:

dev_requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

pgcommitfest/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.1.0"

pyproject.toml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1-
[tool.ruff]
2-
# line-length = 120
1+
[project]
2+
name = "pgocmmitfest"
3+
description = "Commitfest app for the PostgreSQL community"
4+
dynamic = ["version"]
5+
readme = "README.md"
6+
license = "PostgreSQL"
7+
dependencies = [
8+
"django>=4.2,<5.0",
9+
"psycopg2",
10+
"simplejson",
11+
"requests",
12+
"pycryptodomex",
13+
]
14+
15+
[project.optional-dependencies]
16+
dev = [
17+
"uwsgi",
18+
"pycodestyle",
19+
"ruff",
20+
"djhtml",
21+
]
22+
23+
[tool.setuptools.packages.find]
24+
include = ["pgcommitfest*"]
325

4-
[tool.ruff.format]
5-
# quote-style = "preserve"
26+
[tool.pycodestyle]
27+
statistics = true
28+
ignore = ["E402", "E501", "W503"]
29+
max-line-length = 120
630

731
[tool.ruff.lint]
832
extend-select = ["I"]
@@ -19,4 +43,4 @@ section-order = [
1943

2044
[tool.ruff.lint.isort.sections]
2145
# Group all Django imports into a separate section.
22-
"django" = ["django"]
46+
django = ["django"]

requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.cfg

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)