Skip to content

Commit

Permalink
PEP8 format and set CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreRico committed Oct 3, 2024
1 parent 6cf00d7 commit a5ecd99
Show file tree
Hide file tree
Showing 37 changed files with 11,763 additions and 9,703 deletions.
9 changes: 9 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[flake8]
max-line-length = 88 # Black standard
exclude = .git,__pycache__,build,dist # Ignore folders and files
max-complexity = 10 # Set the maximum complexity allowed
ignore =
; E203, # space before ':'
; W503, # line break before binary operator
; W191, # indentation contains tabs
; E101, # indentation contains mixed spaces and tabs
31 changes: 31 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Code Formatting

on:
push:
branches:
- development
pull_request:
branches:
- master
- development

jobs:
black:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install black
run: |
pip install black
- name: Run black check
run: |
black --check .
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ venv
build
dist
LOKI.egg-info
.vscode
6 changes: 5 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG

3.0.0
3.0.1-dev
-


3.0.0-dev (2024-10-03)
- added disease category for groups
- added sub-categories for groups
- added data source like disgenet, gaad, and kegg disease
Expand Down
11 changes: 9 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
__all__ = ["loki-build","loki/loki_db","loki/loki_source","loki/loki_updater","loki/loaders","loki/util"]
__version__ = "3.0.0"
__all__ = [
"loki-build",
"loki/loki_db",
"loki/loki_source",
"loki/loki_updater",
"loki/loaders",
"loki/util",
]
__version__ = "3.0.0"
Loading

0 comments on commit a5ecd99

Please sign in to comment.