Skip to content
Snippets Groups Projects
Commit c9476a27 authored by Hannes Feldt's avatar Hannes Feldt
Browse files

test

parent 7bb6f1c4
No related branches found
No related tags found
1 merge request!33Add pre-commit hook and improve with better linting
Pipeline #101411 failed
Pipeline: Python Package

#101412

    This commit is part of merge request !33. Comments created here will be created in the context of that merge request.
    ...@@ -38,24 +38,29 @@ commands = [ ...@@ -38,24 +38,29 @@ commands = [
    # Command prefixes to reuse the same virtualenv for all linting jobs. # Command prefixes to reuse the same virtualenv for all linting jobs.
    [tool.tox.env.pep8] [tool.tox.env.pep8]
    deps = ["flake8"]
    commands = [ commands = [
    ["python", "-m", "flake8", "--version"], ["python", "-m", "flake8", "--version"],
    ["python", "-m", "flake8", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }] ["python", "-m", "flake8", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }]
    ] ]
    [tool.tox.env.black] [tool.tox.env.black]
    deps = ["black"]
    commands = [ commands = [
    ["python", "-m", "black", "--version"], ["python", "-m", "black", "--version"],
    ["python", "-m", "black", "--check", "--diff", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }] ["python", "-m", "black", "--check", "--diff", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }]
    ] ]
    [tool.tox.env.pylint] [tool.tox.env.pylint]
    deps = ["pylint"]
    commands = [ commands = [
    ["python", "-m", "pylint", "--version"], ["python", "-m", "pylint", "--version"],
    ["python", "-m", "pylint", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }] ["python", "-m", "pylint", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }]
    ] ]
    [tool.tox.env.format] [tool.tox.env.format]
    deps = ["autopep8"]
    deps = ["black"]
    commands = [ commands = [
    ["python", "-m", "autopep8", "-v", "-aa", "--in-place", "--recursive", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }], ["python", "-m", "autopep8", "-v", "-aa", "--in-place", "--recursive", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }],
    ["python", "-m", "black", "-v", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }] ["python", "-m", "black", "-v", { replace = "posargs", default = ["{{cookiecutter.project_slug}}", "tests"], extend = true }]
    ...@@ -75,5 +80,5 @@ commands = [ ...@@ -75,5 +80,5 @@ commands = [
    [tool.tox.env.build] [tool.tox.env.build]
    package = "wheel" package = "wheel"
    deps = ["build"] deps = ["build>=0.8.0"]
    commands = [["python", "-m", "build"]] commands = [["python", "-m", "build"]]
    autopep8 >= 1.7.0 # MIT
    black >= 22.0.0 # MIT
    build >= 0.8.0 # MIT
    flake8 >= 5.0.0 # MIT
    pylint >= 2.15.0 # GPLv2
    pytest >= 7.0.0 # MIT pytest >= 7.0.0 # MIT
    pytest-cov >= 3.0.0 # MIT pytest-cov >= 3.0.0 # MIT
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment