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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
virtualenvs-in-project: true
# install dependencies
- name: Install dependencies
run: poetry install --no-interaction --no-ansi --only sphinx
run: poetry install --no-interaction --no-ansi --no-root --only sphinx
# build package
- name: Build package
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
virtualenvs-in-project: true
# install dependencies
- name: Install dependencies
run: poetry install --no-interaction --no-ansi --without docs,hooks,sast
run: poetry install --no-interaction --no-ansi --no-root --only tooling
# run preflight checks
- name: Preflight checks with tox
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction --no-root --no-ansi --only docs
run: poetry install --no-interaction --no-ansi --no-root --only docs
- name: Build documentation
run: |
source .venv/bin/activate
Expand Down
11 changes: 6 additions & 5 deletions poetry.lock

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

60 changes: 48 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Utils PEP 621 is enhanced or some fancy build
# system comes up with a clever mechanism to
# itegrate it all. For now poetry works best.


####################
# Build System #
####################

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


####################
# Metadata #
####################

[tool.poetry]
name = "validators"
version = "0.21.1"
Expand All @@ -24,46 +42,64 @@ classifiers = [
]
include = ["CHANGES.md", "docs/*", "docs/validators.1", "validators/py.typed"]


####################
# Dependencies #
####################

[tool.poetry.dependencies]
python = "^3.8"

[tool.poetry.group.dev.dependencies]
tox = "^4.4.11"
[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.2"
mkdocs-material = "^9.1.6"
mkdocstrings = { extras = ["python"], version = "^0.20.0" }
mkdocstrings = { extras = ["python"], version = "^0.21.2" }
pyaml = "^21.10.1"

[tool.poetry.group.hooks]
optional = true

[tool.poetry.group.hooks.dependencies]
pre-commit = "^3.2.2"

[tool.poetry.group.sast]
optional = true

[tool.poetry.group.sast.dependencies]
bandit = "^1.7.5"

[tool.poetry.group.sphinx]
optional = true

[tool.poetry.group.sphinx.dependencies]
sphinx = "^6.1.3"
myst-parser = "^1.0.0"
pypandoc-binary = "^1.11"

[tool.poetry.group.tests.dependencies]
[tool.poetry.group.testing]
optional = true

[tool.poetry.group.testing.dependencies]
pytest = "^7.3.0"

[tool.poetry.group.type-lint-format.dependencies]
[tool.poetry.group.tooling]
optional = true

[tool.poetry.group.tooling.dependencies]
black = "^23.3.0"
flake8 = "^5.0.4"
flake8-docstrings = "^1.7.0"
isort = "^5.12.0"
pyright = "^1.1.302"
tox = "^4.4.11"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

#######################
# misc configurations #
#######################
####################
# Configurations #
####################

[tool.black]
line-length = 100
Expand Down Expand Up @@ -112,7 +148,7 @@ env_list =
[testenv]
description = run unit tests
deps = pytest
commands = pytest tests/
commands = pytest

[testenv:format_black]
description = run formatter
Expand Down