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 5f9a646
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
import-order-style = pep8
application-import-names = yamllint
ignore = W503,W504
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ 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: python -m build
# - run: pip install dist/yamllint-*.tar.gz
- run: pip install .
- run: flake8 .
- run: doc8 $(git ls-files '*.rst')
- run: rstcheck --ignore-directives automodule $(git ls-files '*.rst')
Expand Down Expand Up @@ -55,6 +56,7 @@ jobs:
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- run: pip install coveralls
- run: pip install .
- run: coverage run --source=yamllint -m unittest discover
- run: ls -l
- run: coverage run -m unittest discover
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
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,5 @@ packages = ["yamllint", "yamllint.conf", "yamllint.rules"]

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

#TODO: reste à tester coveralls
20 changes: 10 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
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 5f9a646

Please sign in to comment.