Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ jobs:
poetry install
- name: Run tests
run: make test
- name: Check black
run: |
# We ensure that WPS does not report
# any issues after `black` is applied.
poetry run black .
poetry run flake8 .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Semantic versioning in our case means:
### Misc

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


## 1.4.0
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ unit:

.PHONY: package
package:
# TODO: re-enable when poetry@2.0 support will be fixed
# poetry run poetry check
poetry run pip check

.PHONY: test
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

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


pkg_meta = _get_project_meta()
Expand Down
97 changes: 6 additions & 91 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 8 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
build-backend = "poetry.core.masonry.api"
requires = [ "poetry-core>=2.2" ]

[project]
[tool.poetry]
name = "wemake-python-styleguide"
version = "1.4.0"
description = "The strictest and most opinionated python linter ever"

license = {text = "MIT"}
license = "MIT"
requires-poetry = ">=2.2"

authors = [
{name = "Nikita Sobolev", email = "mail@sobolevn.me"}
"Nikita Sobolev <mail@sobolevn.me>",
]

readme = "README.md"
Expand All @@ -37,7 +37,7 @@ classifiers = [
"Typing :: Typed",
]

[project.urls]
[tool.poetry.urls]
Homepage = "https://wemake-python-styleguide.rtfd.io"
Repository = "https://github.com/wemake-services/wemake-python-styleguide"
Funding = "https://opencollective.com/wemake-python-styleguide"
Expand All @@ -61,20 +61,19 @@ pytest-cov = "^7.0"
pytest-randomly = "^4.0"
pytest-xdist = "^3.8"
covdefaults = "^2.3"
syrupy = "^4.6"
syrupy = "^5.0"
hypothesis = "^6.135"
hypothesmith = "^0.3"

mypy = "^1.18"
mypy = "^1.19"
types-flake8 = "^7.3"

import-linter = "^2.0"

astpath = "^0.9"
lxml = "^6.0"
nbqa = "^1.2"
ruff = ">=0.14"
black = "^25.1"
ruff = "^0.14"

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

[tool.black]
line-length = 80
preview = true
skip-string-normalization = true # we use '
target-version = [ 'py310' ]
# Exclude intentionally bad files:
extend-exclude = '''
(
tests/.*/__snapshots__/.* | tests/fixtures/.*
)
'''

[tool.ruff]
# Ruff config: https://docs.astral.sh/ruff/settings
Expand Down