Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Notes #28

Closed
KyleKing opened this issue Jan 19, 2022 · 0 comments
Closed

Notes #28

KyleKing opened this issue Jan 19, 2022 · 0 comments
Assignees

Comments

@KyleKing
Copy link
Owner

KyleKing commented Jan 19, 2022

Assorted local notes. Not much to do with these now

-- archan.yaml

# poetry run python -m pip install git+https://github.com/Pawamoy/archan.git
# [tool.poetry.dev-dependencies.archan]
# git = "https://github.com/Pawamoy/archan.git"
# branch = "master"

analysis:
  dependenpy.InternalDependencies:
    name: Software Architecture
    arguments:
      packages:
        - common_bootstrap
    checkers:
      - archan.CompleteMediation
      - archan.EconomyOfMechanism:
          allow_failure: true
          arguments:
            simplicity_factor: 2
      - archan.LayeredArchitecture
      - archan.LeastCommonMechanism:
          allow_failure: true
          arguments:
            independence_factor: 5
  Open Design:
    Source Code: true
    arguments:
      packages:
        - common_bootstrap


-- dodo-task-list.py

# Add dvc commands to DoIt

# How are arguments passed? list? `--ignore-decorators=@self.app`

# Issue with flake8-sql and __init__.py > https://github.com/pgjones/flake8-sql/blob/master/flake8_sql/keywords.py

# Expect issues with flake8-rst-docstrings: https://github.com/peterjc/flake8-rst-docstrings

# flake8-aaa / Review: https://jamescooke.info/arrange-act-assert-pattern-for-python-developers.html
#   and flake8-assertive: https://github.com/jparise/flake8-assertive

# TBD: --doctests (from pyflakes) / --exclude-from-doctest=EXCLUDE_FROM_DOCTEST
# > Useful: --statistics --benchmark

# proselint - Disable quotes and other checks: https://github.com/amperser/proselint#checks
# radon - no such option? `--radon-max-cc`

# vulture dodo.py calcipy/ --ignore-names task_*,DOIT_CONFIG,pytest_*
# vulture dodo.py calcipy/ --ignore-names task_*,DOIT_CONFIG,pytest_* --make-whitelist > whitelist.py
# vulture dodo.py calcipy/ whitelist.py --ignore-names task_*,DOIT_CONFIG,pytest_*
# ... --ignore-decorators "@self.app*"
# ... --sort-by-size


-- pyproject.toml

# def _log_pd(path_log: Path) -> None:
#     # Based on: https://www.kaggle.com/jboysen/quick-tutorial-flatten-nested-json-in-pandas
#
#     import pandas as pd
#     from sqlite_utils import Database
#
#     db = Database('TBD.db')
#     if 'df_norm' in db.tables:
#         db['df_norm'].drop()
#
#     # df_norm = None
#     with jsonlines.open(path_log) as reader:
#         # for obj in reader:
#         #     df_norm = safe_df_append(df_norm, pd.json_normalize(obj['record']))
#         #
#         df_norm = pd.json_normalize([obj['record'] for obj in reader])
#         #
#         # records = []
#         # for obj in reader:
#         #     records.append(obj['record'])
#         # df_norm = pd.json_normalize(records)
#
#     print(df_norm.head(2))
#     db['df_norm'].insert_all(df_norm.to_dict(orient='records'))
#
#     # breakpoint()
#     # poetry run datasette "TBD.db" --reload
#
# _log_pd(paths_log[0])  # HACK: Work in progress
@KyleKing KyleKing added Type: Feature Clearly defined new feature request Needs Discussion Ticket needs discussion and prioritization Type: Idea General idea or concept that could become a feature request labels Jan 19, 2022
@KyleKing KyleKing self-assigned this Jan 19, 2022
@KyleKing KyleKing removed Type: Feature Clearly defined new feature request Needs Discussion Ticket needs discussion and prioritization Type: Idea General idea or concept that could become a feature request labels Aug 5, 2022
@KyleKing KyleKing closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant