Skip to content
Snippets Groups Projects
Commit b7f511c7 authored by Corné Lukken's avatar Corné Lukken
Browse files

Fix paths and try to fix flake ignored files

parent eabfedd0
No related branches found
No related tags found
1 merge request!2Backport sphinx documentation to binary wheel package
Pipeline #59486 failed
Pipeline: Python Binary Wheel Package

#59487

    This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
    ...@@ -28,6 +28,14 @@ default: ...@@ -28,6 +28,14 @@ default:
    - python -m pip install --upgrade pip - python -m pip install --upgrade pip
    - pip install --upgrade tox twine - pip install --upgrade tox twine
    # Override artifact directories
    package_docs:
    stage: package
    artifacts:
    expire_in: 1w
    paths:
    - my_awesome_app/docs/build/*
    # override package files before script # override package files before script
    package_files: package_files:
    before_script: before_script:
    ......
    ...@@ -91,14 +91,12 @@ package_files: ...@@ -91,14 +91,12 @@ package_files:
    package_docs: package_docs:
    stage: package stage: package
    allow_failure: true
    artifacts: artifacts:
    expire_in: 1w expire_in: 1w
    paths: paths:
    - docs/* # update path to match the dest dir for documentation - docs/build/*
    script: script:
    - echo "build and collect docs" - tox -e docs
    - exit 1
    run_integration_tests: run_integration_tests:
    stage: integration stage: integration
    ......
    ...@@ -47,6 +47,8 @@ archs = ["AMD64", "x86"] ...@@ -47,6 +47,8 @@ archs = ["AMD64", "x86"]
    [tool.pylint] [tool.pylint]
    ignore = "_version.py" ignore = "_version.py"
    # This does nothing until the issue below is resolved:
    # https://github.com/PyCQA/flake8/issues/234
    [tool.flake8] [tool.flake8]
    max-line-length = 88 max-line-length = 88
    extend-ignore = ["E203"] extend-ignore = ["E203"]
    ......
    ...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
    def greeter(): def greeter():
    """Prints a nice message""" """Prints a nice message"""
    print("Hello World!") print("Hello World!, test line over 80 but not 88 characters on a single line")
    ...@@ -31,13 +31,13 @@ usedevelop = False ...@@ -31,13 +31,13 @@ usedevelop = False
    envdir = {toxworkdir}/linting envdir = {toxworkdir}/linting
    commands = commands =
    pep8: {envpython} -m flake8 --version pep8: {envpython} -m flake8 --version
    pep8: {envpython} -m flake8 src tests pep8: {envpython} -m flake8 --exclude=_version.py --max-line-length 88 --extend-ignore=E203 src tests
    black: {envpython} -m black --version black: {envpython} -m black --version
    black: {envpython} -m black --check --diff src tests black: {envpython} -m black --check --diff src tests
    pylint: {envpython} -m pylint --version pylint: {envpython} -m pylint --version
    pylint: {envpython} -m pylint src tests pylint: {envpython} -m pylint src tests
    format: {envpython} -m autopep8 -v -aa --in-place --recursive src format: {envpython} -m autopep8 -v --max-line-length 88 -aa --in-place --recursive src
    format: {envpython} -m autopep8 -v -aa --in-place --recursive tests format: {envpython} -m autopep8 -v --max-line-length 88 -aa --in-place --recursive tests
    format: {envpython} -m black -v src tests format: {envpython} -m black -v src tests
    [testenv:docs] [testenv:docs]
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment