Skip to content

Commit

Permalink
refactor: moved ekglib directory to src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jgeluk committed Oct 29, 2024
1 parent 473757e commit 3155292
Show file tree
Hide file tree
Showing 158 changed files with 3,516 additions and 1,522 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
41 changes: 17 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,41 @@ jobs:
strategy:
fail-fast: false
matrix:
# python_version: [3.8, 3.9-dev] # The 3.9.0-rc1 version does not compile well with pandas binary compile
python_version: [3.10.8]
python_version: [3.13.0]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
if: "!endsWith(matrix.python_version, '-dev')"
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: ${{ matrix.python_version }}
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Set up Python ${{ matrix.python_version }}
uses: deadsnakes/[email protected]
if: endsWith(matrix.python_version, '-dev')
with:
python-version: ${{ matrix.python_version }}
run: uv python install ${{ matrix.python_version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel flake8 pytest pytest-cov pytest-html
python -m pip install poetry
python -m poetry config virtualenvs.in-project true
python -m poetry config virtualenvs.create false
python -m poetry install
python -m poetry build
uv sync --all-extras --dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
uv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
uv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
python -m pytest tests/ -rA \
--doctest-modules \
--cov-report=html \
uv run pytest tests/ \
--html=test-results-${{ matrix.python_version }}.html \
--self-contained-html \
--maxfail=2 \
--showlocals \
--tb=short
- name: Upload pytest test results
uses: actions/upload-artifact@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure git
run: |
git config --local user.email "[email protected]"
Expand Down
10 changes: 0 additions & 10 deletions ekglib/git/various.py

This file was deleted.

5 changes: 0 additions & 5 deletions ekglib/kgiri/__init__.py

This file was deleted.

37 changes: 0 additions & 37 deletions ekglib/ldap_parser_to_s3/parser.py

This file was deleted.

17 changes: 0 additions & 17 deletions ekglib/log/__init__.py

This file was deleted.

36 changes: 0 additions & 36 deletions ekglib/mime/__init__.py

This file was deleted.

16 changes: 0 additions & 16 deletions ekglib/namespace/__init__.py

This file was deleted.

8 changes: 0 additions & 8 deletions ekglib/string/str_util.py

This file was deleted.

4 changes: 0 additions & 4 deletions ekglib/user_story_parser/__main__.py

This file was deleted.

1 change: 0 additions & 1 deletion ekglib/xlsx_parser/__init__.py

This file was deleted.

Loading

0 comments on commit 3155292

Please sign in to comment.