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
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
pip install -e . -q
|
pip install -e .[dev] -q --disable-pip-version-check -q
|
||||||
pip install pylint~=2.17.7 mypy~=1.10.1 --disable-pip-version-check -q
|
|
||||||
mypy --install-types
|
|
||||||
python -m pip list --format=columns --disable-pip-version-check
|
python -m pip list --format=columns --disable-pip-version-check
|
||||||
- name: Run pylint
|
- name: Run pylint
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -11,15 +11,14 @@ jobs:
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
pip install -e . -q
|
pip install -e .[dev] -q --disable-pip-version-check -q
|
||||||
pip install pylint~=2.17.7 --disable-pip-version-check -q
|
|
||||||
python -m pip list --format=columns --disable-pip-version-check
|
python -m pip list --format=columns --disable-pip-version-check
|
||||||
- name: Run pylint
|
- name: Run pylint
|
||||||
run: |
|
run: |
|
||||||
pylint --version
|
pylint --version
|
||||||
pylint **/*.py --exit-zero --rc-file pyproject.toml
|
pylint **/*.py --exit-zero --rc-file pyproject.toml
|
||||||
|
|
||||||
typing-mypy:
|
mypy:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: nikolaik/python-nodejs:python3.11-nodejs21
|
container: nikolaik/python-nodejs:python3.11-nodejs21
|
||||||
steps:
|
steps:
|
||||||
|
@ -27,9 +26,7 @@ jobs:
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
pip install -e . -q
|
pip install -e .[dev] -q --disable-pip-version-check -q
|
||||||
pip install mypy~=1.10.1 --disable-pip-version-check -q
|
|
||||||
mypy --install-types
|
|
||||||
python -m pip list --format=columns --disable-pip-version-check
|
python -m pip list --format=columns --disable-pip-version-check
|
||||||
- name: Run mypy
|
- name: Run mypy
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -31,6 +31,14 @@ include = ["dockge_cli*"]
|
||||||
[tool.setuptools.package-data]
|
[tool.setuptools.package-data]
|
||||||
"*" = ["py.typed"]
|
"*" = ["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"]
|
[tool.pylint."MAIN"]
|
||||||
disable = [ "line-too-long", "missing-module-docstring", "missing-function-docstring", "missing-class-docstring" ]
|
disable = [ "line-too-long", "missing-module-docstring", "missing-function-docstring", "missing-class-docstring" ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue