Skip to content

Commit

Permalink
Merge branch 'develop' into 374-add-hypothesis-tests-links
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Nov 7, 2024
2 parents 53aef73 + 10f44fe commit 871fe7c
Show file tree
Hide file tree
Showing 14 changed files with 260 additions and 195 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
pip install -e ".[tests, lxml, docs]"
- name: test the pythoncode in the documentation
run: |
python -m doctest docs/*.rst -v
python -m doctest docs/*.rst
- name: Run the pythoncode in the examples
run: |
python examples/read_kml.py
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: SonarBuild

Check warning on line 1 in .github/workflows/sonarcloud.yml

View workflow job for this annotation

GitHub Actions / static-tests (3.12)

1:1 [document-start] missing document start "---"

Check warning on line 1 in .github/workflows/sonarcloud.yml

View workflow job for this annotation

GitHub Actions / static-tests (3.12)

1:1 [document-start] missing document start "---"
on:

Check warning on line 2 in .github/workflows/sonarcloud.yml

View workflow job for this annotation

GitHub Actions / static-tests (3.12)

2:1 [truthy] truthy value should be one of [false, true]

Check warning on line 2 in .github/workflows/sonarcloud.yml

View workflow job for this annotation

GitHub Actions / static-tests (3.12)

2:1 [truthy] truthy value should be one of [false, true]
push:
branches:
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
15 changes: 7 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.6.1
hooks:
- id: check-pre-commit-ci-config
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
Expand Down Expand Up @@ -36,18 +42,11 @@ repos:
rev: v0.3.1
hooks:
- id: absolufy-imports
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.7.2'
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
Expand Down
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Fastkml is continually tested
:target: https://github.com/cleder/fastkml/actions/workflows/run-all-tests.yml
:alt: Test

.. |cov| image:: http://codecov.io/github/cleder/fastkml/coverage.svg?branch=main
.. |cov| image:: https://codecov.io/gh/cleder/fastkml/branch/main/graph/badge.svg?token=VIuhPHq0ow
:target: http://codecov.io/github/cleder/fastkml?branch=main
:alt: codecov.io

Expand Down Expand Up @@ -108,7 +108,9 @@ Requirements
Optional
---------

* lxml_::
* lxml_:

.. code-block:: bash
pip install --pre "fastkml[lxml]"
Expand Down
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@
# If true, links to the reST sources are added to the pages.
# html_show_sourcelink = True

html_context = {
"display_github": True, # Integrate GitHub
"github_user": "cleder", # Username
"github_repo": "fastkml", # Repo name
"github_version": "main", # Version
"conf_py_path": "/docs/", # Path in the checkout to the docs root
}

# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
# html_show_sphinx = True

Expand Down
4 changes: 3 additions & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ as its parser, but you can change this by setting the
implementation.

E.g. if you have lxml installed, but you want to use the
standard ``xml.etree.ElementTree``, you can do this::
standard ``xml.etree.ElementTree``, you can do this:

.. code-block:: pycon
>>> import fastkml.config
>>> import xml.etree.ElementTree
Expand Down
Loading

0 comments on commit 871fe7c

Please sign in to comment.