1
0
mirror of https://github.com/enpaul/mezzo.git synced 2024-12-04 20:30:37 +00:00

Add dev dependencies

Update dotfiles
Add toxfile
This commit is contained in:
Ethan Paul 2020-03-14 11:18:51 -04:00
parent 5b1c67e5c1
commit 637f3297f8
6 changed files with 1579 additions and 7 deletions

View File

@ -8,4 +8,3 @@ exclude_lines =
main() main()
\.\.\. \.\.\.
pass pass

1
.gitignore vendored
View File

@ -96,4 +96,3 @@ ENV/
# Rope project settings # Rope project settings
.ropeproject .ropeproject

View File

@ -425,4 +425,3 @@ min-public-methods=2
# Exceptions that will emit a warning when being caught. Defaults to # Exceptions that will emit a warning when being caught. Defaults to
# "Exception" # "Exception"
overgeneral-exceptions=Exception overgeneral-exceptions=Exception

1524
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -6,9 +6,21 @@ authors = ["Ethan Paul <e@enp.one>"]
license = "MIT" license = "MIT"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.4" python = "^3.5"
[tool.poetry.dev-dependencies] [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] [build-system]
requires = ["poetry>=1.0.0"] requires = ["poetry>=1.0.0"]

45
tox.ini Normal file
View 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