File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 2020
2121.PHONY : package
2222package :
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
Original file line number Diff line number Diff line change 2323
2424def _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
2929pkg_meta = _get_project_meta ()
Original file line number Diff line number Diff line change 22build-backend = " poetry.core.masonry.api"
33requires = [ " poetry-core>=2.2" ]
44
5- [project ]
5+ [tool . poetry ]
66name = " wemake-python-styleguide"
77version = " 1.4.0"
88description = " The strictest and most opinionated python linter ever"
9-
10- license = { text = " MIT " }
9+ license = " MIT "
10+ requires-poetry = " >=2.2 "
1111
1212authors = [
13- { name = " Nikita Sobolev" , email = " mail@sobolevn.me" }
13+ " Nikita Sobolev < mail@sobolevn.me> " ,
1414]
1515
1616readme = " README.md"
@@ -37,7 +37,7 @@ classifiers = [
3737 " Typing :: Typed" ,
3838]
3939
40- [project .urls ]
40+ [tool . poetry .urls ]
4141Homepage = " https://wemake-python-styleguide.rtfd.io"
4242Repository = " https://github.com/wemake-services/wemake-python-styleguide"
4343Funding = " https://opencollective.com/wemake-python-styleguide"
@@ -61,20 +61,19 @@ pytest-cov = "^7.0"
6161pytest-randomly = " ^4.0"
6262pytest-xdist = " ^3.8"
6363covdefaults = " ^2.3"
64- syrupy = " ^4.6 "
64+ syrupy = " ^5.0 "
6565hypothesis = " ^6.135"
6666hypothesmith = " ^0.3"
6767
68- mypy = " ^1.18 "
68+ mypy = " ^1.19 "
6969types-flake8 = " ^7.3"
7070
7171import-linter = " ^2.0"
7272
7373astpath = " ^0.9"
7474lxml = " ^6.0"
7575nbqa = " ^1.2"
76- ruff = " >=0.14"
77- black = " ^25.1"
76+ ruff = " ^0.14"
7877
7978[tool .poetry .group .docs ]
8079optional = true
@@ -88,17 +87,6 @@ added-value = "^0.24"
8887tomli = " ^2.0"
8988myst-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
You can’t perform that action at this time.
0 commit comments