Skip to content
Open
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 .devcontainer/post_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ pip install --upgrade \
setuptools \
setuptools_scm \
wheel
pip install -e '.[dev]'
pip install -e . --group dev

pre-commit install --install-hooks
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
shell: bash -e {0}
run: |
python --version # just to check
python -m pip install --upgrade pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
pip install --upgrade "setuptools!=47.2.0" docutils setuptools_scm[toml] twine
pip install -e ".[dev]" # install the codespell dev packages
python -m pip install --upgrade pip wheel
pip install --upgrade setuptools docutils setuptools_scm[toml] twine
pip install -e . --group dev # install the codespell dev packages
- run: pip install aspell-python-py3
if: startsWith(matrix.os, 'ubuntu')
- run: codespell --help
Expand Down Expand Up @@ -85,8 +85,8 @@ jobs:
with:
persist-credentials: false
- name: Install general dependencies
run: pip install --upgrade pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
run: pip install --upgrade pip wheel
- name: Install codespell dependencies
run: pip install -e ".[dev]"
run: pip install -e . --group dev
- uses: codespell-project/sort-problem-matcher@v1
- run: make check-dictionaries
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ check-dictionaries: sort-dictionaries
@if command -v pytest > /dev/null; then \
pytest codespell_lib/tests/test_dictionary.py; \
else \
echo "Test dependencies not present, install using 'pip install -e \".[dev]\"'"; \
echo "Test dependencies not present, install using 'pip install -e . --group dev'"; \
exit 1; \
fi

Expand All @@ -50,7 +50,7 @@ pytest: sort-dictionaries
@if command -v pytest > /dev/null; then \
pytest codespell_lib; \
else \
echo "Test dependencies not present, install using 'pip install -e \".[dev]\"'"; \
echo "Test dependencies not present, install using 'pip install -e . --group dev'"; \
exit 1; \
fi

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ You can install required dependencies for development by running the following w

.. code-block:: sh

pip install -e ".[dev]"
pip install -e . --group dev

To run tests against the codebase run:

Expand Down
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ dependencies = []
dynamic = ["version"]

[project.optional-dependencies]
hard-encoding-detection = [
"chardet"
]
toml = [
"tomli; python_version < '3.11'"
]

[dependency-groups]
dev = [
"build",
"chardet",
Expand All @@ -42,12 +50,6 @@ dev = [
"tomli",
"twine"
]
hard-encoding-detection = [
"chardet"
]
toml = [
"tomli; python_version < '3.11'"
]
types = [
"chardet>=5.1.0",
"mypy",
Expand Down
Loading