Skip to content

Commit

Permalink
chore: fix pyproject.toml to be PEP440 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed Aug 27, 2024
1 parent abe5399 commit 7637389
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
# Relies on a dev version like "2.0.0.dev" by default
VERSION=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['version'])")
DEV_VERSION="${VERSION}.dev${CIRCLE_BUILD_NUM}"
echo "Building a dev version: ${DEV_VERSION}"
# Use sed to replace the version in pyproject.toml
sed -i "s/version = \"${VERSION}\"/version = \"${DEV_VERSION}\"/" pyproject.toml
python3 -m build
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "udata-hydra"
version = "2.0.0.dev"
version = "2.0.0"
description = "Async crawler and parsing service for data.gouv.fr"
authors = [{ name = "Opendata Team", email = "opendatateam@data.gouv.fr" }]
dependencies = [
Expand Down Expand Up @@ -71,11 +71,9 @@ markers = [
addopts = "--cov=udata_hydra/ --cov-report term-missing"

[tool.ruff]
lint = { extend-select = [
"I",
], ignore = [
"F401",
] } # ["I"] is to also sort imports with an isort rule # TODO: remove ignore F401 later
lint = { extend-select = ["I"], ignore = ["F401"] }
# ["I"] is to also sort imports with an isort rule
# TODO: remove ignore F401 later
line-length = 100

[tool.setuptools.dynamic]
Expand Down

0 comments on commit 7637389

Please sign in to comment.