-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from cleder/develop
1.0.alpha.2
- Loading branch information
Showing
42 changed files
with
5,206 additions
and
2,052 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Set update schedule for GitHub Actions | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every weekday | ||
interval: "daily" | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request_target: | ||
types: [opened, synchronize, reopened] | ||
|
||
name: CodeSee Map | ||
|
||
jobs: | ||
test_map_action: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
name: Run CodeSee Map Analysis | ||
steps: | ||
- name: checkout | ||
id: checkout | ||
uses: actions/[email protected] | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
fetch-depth: 0 | ||
|
||
# codesee-detect-languages has an output with id languages. | ||
- name: Detect Languages | ||
id: detect-languages | ||
uses: Codesee-io/codesee-detect-languages-action@latest | ||
|
||
- name: Configure JDK 16 | ||
uses: actions/setup-java@v3 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).java }} | ||
with: | ||
java-version: '16' | ||
distribution: 'zulu' | ||
|
||
# CodeSee Maps Go support uses a static binary so there's no setup step required. | ||
|
||
- name: Configure Node.js 14 | ||
uses: actions/setup-node@v3 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).javascript }} | ||
with: | ||
node-version: '14' | ||
|
||
- name: Configure Python 3.x | ||
uses: actions/setup-python@v4 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).python }} | ||
with: | ||
python-version: '3.10' | ||
architecture: 'x64' | ||
|
||
- name: Configure Ruby '3.x' | ||
uses: ruby/setup-ruby@v1 | ||
if: ${{ fromJSON(steps.detect-languages.outputs.languages).ruby }} | ||
with: | ||
ruby-version: '3.0' | ||
|
||
# CodeSee Maps Rust support uses a static binary so there's no setup step required. | ||
|
||
- name: Generate Map | ||
id: generate-map | ||
uses: Codesee-io/codesee-map-action@latest | ||
with: | ||
step: map | ||
github_ref: ${{ github.ref }} | ||
languages: ${{ steps.detect-languages.outputs.languages }} | ||
|
||
- name: Upload Map | ||
id: upload-map | ||
uses: Codesee-io/codesee-map-action@latest | ||
with: | ||
step: mapUpload | ||
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }} | ||
github_ref: ${{ github.ref }} | ||
|
||
- name: Insights | ||
id: insights | ||
uses: Codesee-io/codesee-map-action@latest | ||
with: | ||
step: insights | ||
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }} | ||
github_ref: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,11 @@ venv | |
# editors | ||
.vscode/ | ||
.idea/ | ||
|
||
# typing | ||
.mypy_cache/ | ||
.pyre/ | ||
.watchmanconfig | ||
|
||
# misc | ||
.dccache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
scanner: | ||
linter: flake8 | ||
|
||
flake8: | ||
max-line-length: 89 | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-docstring-first | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-vcs-permalinks | ||
- id: check-xml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: name-tests-test | ||
exclude: ^fastkml/tests/base.py | ||
- id: no-commit-to-branch | ||
- id: pretty-format-json | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/ikamensh/flynt/ | ||
rev: "0.76" | ||
hooks: | ||
- id: flynt | ||
- repo: https://github.com/MarcoGorelli/absolufy-imports | ||
rev: v0.3.1 | ||
hooks: | ||
- id: absolufy-imports | ||
- repo: https://github.com/hakancelikdev/unimport | ||
rev: 0.12.1 | ||
hooks: | ||
- id: unimport | ||
args: [--remove, --include-star-import, --ignore-init, --gitignore] | ||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.48" | ||
hooks: | ||
- id: check-manifest | ||
# - repo: https://github.com/Lucas-C/pre-commit-hooks-markup | ||
# rev: v1.0.1 | ||
# hooks: | ||
# - id: rst-linter | ||
# - repo: https://github.com/pre-commit/mirrors-mypy | ||
# rev: v0.910 | ||
# hooks: | ||
# - id: mypy | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Configuration | ||
============== | ||
|
||
ElementTree configuration | ||
-------------------------- | ||
|
||
By default, fastkml uses the standard libraries | ||
``xml.etree.ElementTree`` or, if installed, ``lxml.etree`` | ||
as its parser, but you can change this by setting the | ||
``fastkml.config.etree`` module variable to a different | ||
implementation. | ||
|
||
E.g. if you have lxml installed, but you want to use the | ||
standard ``xml.etree.ElementTree``, you can do this:: | ||
|
||
>>> import fastkml.config | ||
>>> import xml.etree.ElementTree | ||
>>> fastkml.config.set_etree_implementation(xml.etree.ElementTree) | ||
>>> fastkml.config.set_default_namespaces() | ||
|
||
You can pass any module that implements the ``ElementTree`` interface | ||
to the ``set_etree_implementation`` function. | ||
|
||
Registering additional namespaces | ||
---------------------------------- | ||
The ``fastkml.config.set_default_namespaces`` function registers | ||
the ``kml``, ``gx`` and ``atom`` namespaces with the ``ElementTree``. | ||
You can add any other namespaces you want to use by calling | ||
``fastkml.config.register_namespace`` with the namespace prefix and | ||
the namespace URI. | ||
|
||
.. code-block:: python | ||
>>> import fastkml.config | ||
>>> import xml.etree.ElementTree | ||
>>> fastkml.config.set_etree_implementation(xml.etree.ElementTree) | ||
>>> fastkml.config.register_namespace(foo='http://foo.com') | ||
>>> config.set_default_namespaces() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.