Skip to content

Commit

Permalink
Fix nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
charmoniumQ committed Mar 15, 2022
1 parent b03ef32 commit 02b461b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
31 changes: 15 additions & 16 deletions ascl_net_scraper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import re
from dataclasses import dataclass
from typing import (
TYPE_CHECKING,
Iterable,
List,
Mapping,
Expand All @@ -21,21 +20,21 @@
DEFAULT_PARSER = "html5lib"
group = MemoizedGroup(fine_grain_persistence=True)

import logging

logger = logging.getLogger("charmonium.freeze")
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler("freeze.log")
fh.setLevel(logging.DEBUG)
fh.setFormatter(logging.Formatter("%(asctime)s: %(message)s"))
logger.addHandler(fh)

logger = logging.getLogger("charmonium.cache.ops")
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler("cache.log")
fh.setLevel(logging.DEBUG)
fh.setFormatter(logging.Formatter("%(asctime)s: %(message)s"))
logger.addHandler(fh)
# import logging

# logger = logging.getLogger("charmonium.freeze")
# logger.setLevel(logging.DEBUG)
# fh = logging.FileHandler("freeze.log")
# fh.setLevel(logging.DEBUG)
# fh.setFormatter(logging.Formatter("%(asctime)s: %(message)s"))
# logger.addHandler(fh)

# logger = logging.getLogger("charmonium.cache.ops")
# logger.setLevel(logging.DEBUG)
# fh = logging.FileHandler("cache.log")
# fh.setLevel(logging.DEBUG)
# fh.setFormatter(logging.Formatter("%(asctime)s: %(message)s"))
# logger.addHandler(fh)


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
};

packages.${name-shell} = pkgs.mkShell {
buildInputs = nix-dev-dependencies;
buildInputs = nix-dev-dependencies ++ [default-python];
shellHook = ''
env_hash=$(sha1sum poetry.lock | cut -f1 -d' ')
if [ ! -f build/$env_hash ]; then
Expand Down
3 changes: 2 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ disable=
# We use classes like structs, so many will have no public methods.
# I actually want to encourage fewer methods.
too-few-public-methods,
too-many-instance-attributes,

# my personal style is to explicitly else-return and else-raise.
# that way, if you change the return or raise, same functionality
Expand Down Expand Up @@ -235,7 +236,7 @@ redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io

# Format style used to check logging format string. `old` means using %
# formatting, while `new` is for `{}` formatting.
logging-format-style=old
logging-format-style=new

# Logging modules to check that the string format arguments are in logging
# function parameter format.
Expand Down

0 comments on commit 02b461b

Please sign in to comment.