Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienverge committed Apr 14, 2023
1 parent 02f7cda commit 0640491
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .flake8
@@ -0,0 +1,4 @@
[flake8]
import-order-style = pep8
application-import-names = yamllint
ignore = W503,W504
16 changes: 11 additions & 5 deletions .github/workflows/ci.yaml
Expand Up @@ -21,9 +21,8 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
- run:
python -m pip install flake8 flake8-import-order sphinx
rstcheck[sphinx] doc8
- run: python -m pip install .
pip install flake8 flake8-import-order sphinx rstcheck[sphinx] doc8
- run: pip install .
- run: flake8 .
- run: doc8 $(git ls-files '*.rst')
- run: rstcheck --ignore-directives automodule $(git ls-files '*.rst')
Expand Down Expand Up @@ -53,8 +52,15 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Append GitHub Actions system path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- run: pip install coveralls
- run: pip install coverage[toml]
- run: pip install .
- run: coverage run --source=yamllint -m unittest discover
- run: echo -e "[run]\nrelative_files = True" > .coveragerc
- run: pwd
- run: ls /home/runner/work/yamllint/yamllint/rules/truthy.py || true
- run: ls /home/runner/work/yamllint/yamllint/yamllint/rules/truthy.py
- run: coverage run -m unittest discover
- run: cat .coveragerc
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
# with:
# base-path: 'yamllint'
8 changes: 6 additions & 2 deletions pyproject.toml
Expand Up @@ -77,8 +77,9 @@ requires = [
[tool.setuptools]
packages = ["yamllint", "yamllint.conf", "yamllint.rules"]

#[tool.setuptools.package-data]
#yamllint = ["conf/*.yaml"]
# TODO: Obligatoire sinon le RPM n'installe pas ces fichiers
[tool.setuptools.package-data]
yamllint = ["conf/*.yaml"]

#TODO Ne marche pas
#[tool.setuptools.exclude-package-data]
Expand All @@ -91,3 +92,6 @@ packages = ["yamllint", "yamllint.conf", "yamllint.rules"]

[tool.setuptools.dynamic]
version = {attr = "yamllint.__version__"}

[tool.coverage.run]
relative_files = true
20 changes: 10 additions & 10 deletions setup.py
Expand Up @@ -19,15 +19,15 @@
# support new packaging standards (e.g. PEP 517 or PEP 660):
setup()

#from yamllint import (__author__, __license__,
# APP_NAME, APP_VERSION, APP_DESCRIPTION)
# from yamllint import (__author__, __license__,
# APP_NAME, APP_VERSION, APP_DESCRIPTION)
#
#
#setup(
# name=APP_NAME,
# version=APP_VERSION,
# author=__author__,
# description=APP_DESCRIPTION.split('\n')[0],
# long_description=APP_DESCRIPTION,
# license=__license__,
#)
# setup(
# name=APP_NAME,
# version=APP_VERSION,
# author=__author__,
# description=APP_DESCRIPTION.split('\n')[0],
# long_description=APP_DESCRIPTION,
# license=__license__,
# )

0 comments on commit 0640491

Please sign in to comment.