mirror of
https://github.com/enpaul/mezzo.git
synced 2024-12-04 12:20:55 +00:00
Add dev dependencies
Update dotfiles Add toxfile
This commit is contained in:
parent
5b1c67e5c1
commit
637f3297f8
@ -8,4 +8,3 @@ exclude_lines =
|
||||
main()
|
||||
\.\.\.
|
||||
pass
|
||||
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -96,4 +96,3 @@ ENV/
|
||||
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
|
||||
|
@ -425,4 +425,3 @@ min-public-methods=2
|
||||
# Exceptions that will emit a warning when being caught. Defaults to
|
||||
# "Exception"
|
||||
overgeneral-exceptions=Exception
|
||||
|
||||
|
1524
poetry.lock
generated
1524
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -6,9 +6,21 @@ authors = ["Ethan Paul <e@enp.one>"]
|
||||
license = "MIT"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.4"
|
||||
python = "^3.5"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
tox = "^3.14.5"
|
||||
sphinx = "^2.4.4"
|
||||
sphinx-autodoc-typehints = {version = "^1.10.3", python = "^3.5.2"}
|
||||
reorder-python-imports = {version = "^2.1.0", python = "^3.6.1"}
|
||||
bandit = "^1.6.2"
|
||||
ipython = {version = "^7.13.0", python = "^3.6"}
|
||||
pre-commit = "^1.10"
|
||||
mypy = "^0.770"
|
||||
black = {version = "^19.10b0", allow-prereleases = true, python = "^3.6"}
|
||||
pylint = "^2.4.4"
|
||||
pytest = "^5.4.1"
|
||||
pytest-cov = "^2.8.1"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=1.0.0"]
|
||||
|
45
tox.ini
Normal file
45
tox.ini
Normal file
@ -0,0 +1,45 @@
|
||||
[tox]
|
||||
envlist = py35, py36, py37, py38, format, static, docs
|
||||
skip_missing_interpreters = true
|
||||
isolated_build = true
|
||||
|
||||
[testenv]
|
||||
description = Nothing for now
|
||||
commands =
|
||||
python -c "print('Hello World!')"
|
||||
|
||||
[testenv:format]
|
||||
description = Enforce file formatting (pre-commit)
|
||||
skip_install = true
|
||||
basepython = python3
|
||||
deps =
|
||||
pre-commit == 1.21.0
|
||||
commands =
|
||||
pre-commit run --all-files
|
||||
|
||||
[testenv:static]
|
||||
description = Static code analysis (mypy+pylint+bandit)
|
||||
basepython = python3.7
|
||||
ignore_errors = true
|
||||
deps =
|
||||
pylint == 2.4.4
|
||||
mypy == 0.770
|
||||
bandit == 1.6.2
|
||||
commands =
|
||||
mypy mezzo --ignore-missing-imports --no-strict-optional
|
||||
pylint mezzo --rcfile .pylintrc
|
||||
bandit --recursive mezzo
|
||||
|
||||
[testenv:docs]
|
||||
description = Build documentation (sphinx)
|
||||
basepython = python3.7
|
||||
deps =
|
||||
sphinx == 2.4.4
|
||||
sphinx-autodoc-typehints == 1.10.3
|
||||
whitelist_externals =
|
||||
rm
|
||||
commands =
|
||||
sphinx-apidoc -o "./docs/" "mezzo"
|
||||
rm "docs/modules.rst"
|
||||
sphinx-build -M html "./docs/" "./docs/_build" -W
|
||||
sphinx-build -M latex "./docs/" "./docs/_build" -W
|
Loading…
Reference in New Issue
Block a user