Skip to content

Commit 88b3307

Browse files
authored
Return [tool.poetry] to pyproject.toml and remove black (#3580)
1 parent acb7a77 commit 88b3307

6 files changed

Lines changed: 16 additions & 120 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ jobs:
4242
poetry install
4343
- name: Run tests
4444
run: make test
45-
- name: Check black
46-
run: |
47-
# We ensure that WPS does not report
48-
# any issues after `black` is applied.
49-
poetry run black .
50-
poetry run flake8 .
5145
- name: Upload coverage to Codecov
5246
uses: codecov/codecov-action@v5
5347
with:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Semantic versioning in our case means:
3434
### Misc
3535

3636
- Improves docs: remove outdated AST online visualisation tool url
37+
- Returns `[tool.poetry]` instead of `[project]` in `pyproject.toml`
3738

3839

3940
## 1.4.0

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ unit:
2020

2121
.PHONY: package
2222
package:
23-
# TODO: re-enable when poetry@2.0 support will be fixed
24-
# poetry run poetry check
2523
poetry run pip check
2624

2725
.PHONY: test

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
def _get_project_meta():
2525
with pathlib.Path('../pyproject.toml').open(mode='rb') as pyproject:
26-
return tomli.load(pyproject)['project']
26+
return tomli.load(pyproject)['tool']['poetry']
2727

2828

2929
pkg_meta = _get_project_meta()

poetry.lock

Lines changed: 6 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
build-backend = "poetry.core.masonry.api"
33
requires = [ "poetry-core>=2.2" ]
44

5-
[project]
5+
[tool.poetry]
66
name = "wemake-python-styleguide"
77
version = "1.4.0"
88
description = "The strictest and most opinionated python linter ever"
9-
10-
license = {text = "MIT"}
9+
license = "MIT"
10+
requires-poetry = ">=2.2"
1111

1212
authors = [
13-
{name = "Nikita Sobolev", email = "mail@sobolevn.me"}
13+
"Nikita Sobolev <mail@sobolevn.me>",
1414
]
1515

1616
readme = "README.md"
@@ -37,7 +37,7 @@ classifiers = [
3737
"Typing :: Typed",
3838
]
3939

40-
[project.urls]
40+
[tool.poetry.urls]
4141
Homepage = "https://wemake-python-styleguide.rtfd.io"
4242
Repository = "https://github.com/wemake-services/wemake-python-styleguide"
4343
Funding = "https://opencollective.com/wemake-python-styleguide"
@@ -61,20 +61,19 @@ pytest-cov = "^7.0"
6161
pytest-randomly = "^4.0"
6262
pytest-xdist = "^3.8"
6363
covdefaults = "^2.3"
64-
syrupy = "^4.6"
64+
syrupy = "^5.0"
6565
hypothesis = "^6.135"
6666
hypothesmith = "^0.3"
6767

68-
mypy = "^1.18"
68+
mypy = "^1.19"
6969
types-flake8 = "^7.3"
7070

7171
import-linter = "^2.0"
7272

7373
astpath = "^0.9"
7474
lxml = "^6.0"
7575
nbqa = "^1.2"
76-
ruff = ">=0.14"
77-
black = "^25.1"
76+
ruff = "^0.14"
7877

7978
[tool.poetry.group.docs]
8079
optional = true
@@ -88,17 +87,6 @@ added-value = "^0.24"
8887
tomli = "^2.0"
8988
myst-parser = "^4.0"
9089

91-
[tool.black]
92-
line-length = 80
93-
preview = true
94-
skip-string-normalization = true # we use '
95-
target-version = [ 'py310' ]
96-
# Exclude intentionally bad files:
97-
extend-exclude = '''
98-
(
99-
tests/.*/__snapshots__/.* | tests/fixtures/.*
100-
)
101-
'''
10290

10391
[tool.ruff]
10492
# Ruff config: https://docs.astral.sh/ruff/settings

0 commit comments

Comments
 (0)