-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Zhiyuan Chen <[email protected]>
- Loading branch information
1 parent
aaa6b4c
commit 555add3
Showing
18 changed files
with
1,781 additions
and
1,654 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,36 @@ | ||
name: analysis | ||
on: [push, pull_request] | ||
jobs: | ||
lint: | ||
environment: analysis | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ricardochaves/[email protected] | ||
with: | ||
use-pylint: false | ||
python-root-list: "chanfig" | ||
extra-pylint-options: "--max-line-length 120" | ||
extra-pycodestyle-options: "--max-line-length 120" | ||
extra-flake8-options: "--max-line-length 120" | ||
extra-black-options: "--line-length 120" | ||
extra-mypy-options: "" | ||
extra-isort-options: "--line-length 120" | ||
test: | ||
environment: analysis | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
- name: Install pytest | ||
run: pip install pytest | ||
- name: doctest | ||
run: pytest --doctest-modules chanfig |
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 was deleted.
Oops, something went wrong.
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,3 +1,6 @@ | ||
from .config import Config, ConfigParser, DefaultDict, FlatDict, NestedDict, Variable | ||
from .config import Config, ConfigParser | ||
from .flat_dict import FlatDict | ||
from .nested_dict import DefaultDict, NestedDict | ||
from .variable import Variable | ||
|
||
__all__ = ["Config", "NestedDict", "FlatDict", "Variable", "DefaultDict", "ConfigParser"] |
Oops, something went wrong.