Skip to content

Commit

Permalink
Merge pull request #40 from SimeonEhrig/restructureProject
Browse files Browse the repository at this point in the history
add src folder to project structure
  • Loading branch information
SimeonEhrig authored Jun 24, 2024
2 parents d15e7ff + 63509ad commit c429a75
Showing 15 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -30,7 +30,10 @@ jobs:
pip install mypy
- name: Run mypy on bashi source code
run: |
mypy bashi
mypy src/bashi
- name: Run mypy on bashi-validate
run: |
mypy src/bashiValidate/validate.py
- name: Run mypy on example
run: |
mypy example
@@ -56,7 +59,10 @@ jobs:
pip install pylint
- name: Run pylint on bashi source code
run: |
pylint bashi
pylint src/bashi
- name: Run pylint on bashi-validate
run: |
pylint src/bashiValidate/validate.py
- name: Run pylint on example
run: |
pylint example/example.py
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ dependencies = [
[project.scripts]
# creates a python script named bashi-validate
# in principal, the script does the following: from bashi.validate import main; main()
bashi-validate = "bashi.validate:main"
bashi-validate = "bashiValidate.validate:main"

[tool.setuptools.dynamic]
version = {file = "version.txt"}
@@ -44,7 +44,7 @@ Issues = "https://github.com/alpaka-group/bashi/issues"
[tool.coverage.run]
command_line = "-m unittest discover -s tests/"
branch = true
source = ["bashi"]
source = ["src/bashi"]

[tool.black]
line-length = 100
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added src/bashi/py.typed
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion bashi/validate.py → src/bashiValidate/validate.py
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
import argparse
from argparse import ArgumentParser, Namespace

from typing import Sequence, Any, Callable, Optional, IO, Dict, NamedTuple
from typing import Sequence, Any, Callable, Optional, IO, Dict, NamedTuple, List
from collections import OrderedDict
import io
import sys

0 comments on commit c429a75

Please sign in to comment.