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/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
experimental: true

- name: Install optional
run: poetry install
run: poetry install --all-extras

- name: Run Formatter
run: mise run format
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
experimental: true

- name: Install optional
run: poetry install
run: poetry install --all-extras

- name: Run Linter
run: mise run lint
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
experimental: true

- name: Install optional
run: poetry install
run: poetry install --all-extras

- name: Run Unit Tests
run: mise run test
2 changes: 1 addition & 1 deletion .github/workflows/typecheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
experimental: true

- name: Install optional
run: poetry install
run: poetry install --all-extras

- name: Run Type Checker
run: mise run typecheck
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ First, install `poetry` using the instructions located [here](https://python-poe
Then, install the requirements using:

```bash
poetry install
poetry install --all-extras
```

You can run the tests (with coverage) using:
Expand Down
92 changes: 68 additions & 24 deletions poetry.lock

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

34 changes: 11 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,39 +1,27 @@
[tool.poetry]
[project]
name = "optional.py"
version = "2.0.0"
description = "An implementation of the Optional object in Python"

license = "MIT"

authors = [
"Chad Befus <crbefus@gmail.com>",
"Derek Passen <dpassen1@gmail.com>"
{name = "Chad Befus", email = "crbefus@gmail.com"},
{name = "Derek Passen", email = "dpassen1@gmail.com"}
]

readme = "README.md"

repository = "https://github.com/Python-Optional/optional.py"
homepage = "https://github.com/Python-Optional/optional.py"
keywords = ["optional datatype library"]
requires-python = ">= 3.10"

[project.optional-dependencies]
dev = ["ruff", "mypy"]
test = ["pytest", "pytest-cov", "coveralls", "coverage"]

[tool.poetry]
packages = [
{ include = "optional" },
]

keywords = ["optional datatype library"]

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

[tool.poetry.group.dev.dependencies]
ruff = "^0.8.0"
mypy = "^1.6.0"

[tool.poetry.group.test.dependencies]
pytest = ">=7.2,<9.0"
pytest-cov = ">=4,<6"
coveralls = "^3.3"
coverage = "^6.5"

[tool.coverage.report]
exclude_lines = ["@overload"]

Expand All @@ -50,5 +38,5 @@ line-length = 88
select = ["E", "F", "I"]

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