Skip to content

Commit ad3c40a

Browse files
committed
Move linter requirements to pyproject optional dependencies
1 parent 58dddee commit ad3c40a

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.editorconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ max_line_length = 88
1414
[*.py]
1515
max_line_length = 120
1616

17-
[*.{yml, html, xml, xsl, json, toml}]
17+
[*.{yml,html,xml,xsl,json,toml}]
1818
indent_size = 2
1919

20-
[*.{css, less}]
20+
[*.{css,less}]
2121
indent_size = 2
2222

2323
[*.dot]

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
with:
2525
python-version: "3.x"
2626
cache: 'pip'
27-
cache-dependency-path: 'linter-requirements.txt'
28-
- run: python -m pip install -r linter-requirements.txt
27+
cache-dependency-path: pyproject.toml
28+
- run: python -m pip install .[lint]
2929
- run: ${{ matrix.lint-command }}
3030

3131
docs:

linter-requirements.txt

-5
This file was deleted.

pyproject.toml

+7
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ test = [
6161
"pytest-env",
6262
"redis",
6363
]
64+
lint = [
65+
"bandit==1.7.7",
66+
"black==24.2.0",
67+
"flake8==7.0.0",
68+
"isort==5.13.2",
69+
"pydocstyle[toml]==6.3.0",
70+
]
6471
docs = [
6572
"celery>=4.2.0",
6673
"django-reversion",

0 commit comments

Comments
 (0)