Skip to content

Commit

Permalink
Resolves coverage Github action issue and dataclass mutable default i…
Browse files Browse the repository at this point in the history
…ssue
  • Loading branch information
Thomas Eleff committed Aug 21, 2024
1 parent 8dd6cb2 commit f3bda38
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
Binary file modified .coverage
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/coverage-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git remote add github https://github.com/thomaseleff/pytensils.git
git remote add github https://github.com/thomaseleff/assemblit.git
git add coverage/coverage.svg
git add coverage/COVERAGE.md
git commit -m "Updated coverage"
Expand Down
3 changes: 2 additions & 1 deletion assemblit/_database/analysis.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Database table """

from typing import ClassVar
from dataclasses import dataclass
import pandera
import datetime
Expand All @@ -19,7 +20,7 @@ class Schemas():
"""

# The `analysis` table Schema
analysis: _generic.Schema = _generic.Schema(
analysis: ClassVar[_generic.Schema] = _generic.Schema(
name=setup.ANALYSIS_DB_NAME,
columns={
setup.ANALYSIS_DB_QUERY_INDEX: pandera.Column(
Expand Down
3 changes: 2 additions & 1 deletion assemblit/_database/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Database table """

from typing import ClassVar
from dataclasses import dataclass
import pandera
import datetime
Expand All @@ -19,7 +20,7 @@ class Schemas():
"""

# The `data` table Schema.
data: _generic.Schema = _generic.Schema(
data: ClassVar[_generic.Schema] = _generic.Schema(
name=setup.DATA_DB_NAME,
columns={
setup.DATA_DB_QUERY_INDEX: pandera.Column(
Expand Down
5 changes: 3 additions & 2 deletions assemblit/_database/sessions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Database table """

from typing import ClassVar
from dataclasses import dataclass
import pandera
from assemblit import setup
Expand All @@ -20,7 +21,7 @@ class Schemas():
"""

# The `data` table Schema
data: _generic.Schema = _generic.Schema(
data: ClassVar[_generic.Schema] = _generic.Schema(
name=setup.DATA_DB_NAME,
columns={
setup.SESSIONS_DB_QUERY_INDEX: pandera.Column(
Expand All @@ -39,7 +40,7 @@ class Schemas():
)

# The `analysis` table Schema
analysis: _generic.Schema = _generic.Schema(
analysis: ClassVar[_generic.Schema] = _generic.Schema(
name=setup.ANALYSIS_DB_NAME,
columns={
setup.SESSIONS_DB_QUERY_INDEX: pandera.Column(
Expand Down
5 changes: 3 additions & 2 deletions assemblit/_database/users.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Database table """

from typing import ClassVar
from dataclasses import dataclass
import pandera
from assemblit import setup
Expand All @@ -20,7 +21,7 @@ class Schemas():
"""

# The `credentials` table Schema.
credentials: _generic.Schema = _generic.Schema(
credentials: ClassVar[_generic.Schema] = _generic.Schema(
name='credentials',
columns={
setup.USERS_DB_QUERY_INDEX: pandera.Column(
Expand Down Expand Up @@ -48,7 +49,7 @@ class Schemas():
)

# The `sessions` table Schema
sessions: _generic.Schema = _generic.Schema(
sessions: ClassVar[_generic.Schema] = _generic.Schema(
name=setup.SESSIONS_DB_NAME,
columns={
setup.USERS_DB_QUERY_INDEX: pandera.Column(
Expand Down

0 comments on commit f3bda38

Please sign in to comment.