Added dev dependencies
This commit is contained in:
parent
e44fd8a7a5
commit
f309a19d5e
3 changed files with 12 additions and 9 deletions
|
@ -14,9 +14,7 @@ jobs:
|
|||
uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- name: Install packages
|
||||
run: |
|
||||
pip install -e . -q
|
||||
pip install pylint~=2.17.7 mypy~=1.10.1 --disable-pip-version-check -q
|
||||
mypy --install-types
|
||||
pip install -e .[dev] -q --disable-pip-version-check -q
|
||||
python -m pip list --format=columns --disable-pip-version-check
|
||||
- name: Run pylint
|
||||
run: |
|
||||
|
|
|
@ -11,15 +11,14 @@ jobs:
|
|||
uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- name: Install packages
|
||||
run: |
|
||||
pip install -e . -q
|
||||
pip install pylint~=2.17.7 --disable-pip-version-check -q
|
||||
pip install -e .[dev] -q --disable-pip-version-check -q
|
||||
python -m pip list --format=columns --disable-pip-version-check
|
||||
- name: Run pylint
|
||||
run: |
|
||||
pylint --version
|
||||
pylint **/*.py --exit-zero --rc-file pyproject.toml
|
||||
|
||||
typing-mypy:
|
||||
mypy:
|
||||
runs-on: docker
|
||||
container: nikolaik/python-nodejs:python3.11-nodejs21
|
||||
steps:
|
||||
|
@ -27,9 +26,7 @@ jobs:
|
|||
uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- name: Install packages
|
||||
run: |
|
||||
pip install -e . -q
|
||||
pip install mypy~=1.10.1 --disable-pip-version-check -q
|
||||
mypy --install-types
|
||||
pip install -e .[dev] -q --disable-pip-version-check -q
|
||||
python -m pip list --format=columns --disable-pip-version-check
|
||||
- name: Run mypy
|
||||
run: |
|
||||
|
|
|
@ -31,6 +31,14 @@ include = ["dockge_cli*"]
|
|||
[tool.setuptools.package-data]
|
||||
"*" = ["py.typed"]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pylint~=3.2.5",
|
||||
"mypy",
|
||||
"types-PyYAML~=6.0.12.20240311",
|
||||
"types-tabulate~=0.9.0.20240106",
|
||||
]
|
||||
|
||||
[tool.pylint."MAIN"]
|
||||
disable = [ "line-too-long", "missing-module-docstring", "missing-function-docstring", "missing-class-docstring" ]
|
||||
|
||||
|
|
Loading…
Reference in a new issue