Skip to content

Commit

Permalink
Update tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Feb 22, 2020
1 parent 85ec82b commit 941025e
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
CHANGELOG.md merge=union
16 changes: 16 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[settings]

not_skip = __init__.py

multi_line_output = 3

known_standard_library = dataclasses,typing_extensions
known_third_party = click,log
known_first_party = log

combine_as_imports = true
force_grid_wrap = false
include_trailing_comma = true

lines_after_imports = 2
line_length = 88
4 changes: 3 additions & 1 deletion .pylint.ini
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ disable=
too-many-arguments,
too-many-branches,
unpacking-non-sequence,
global-statement,
wildcard-import,
unused-wildcard-import,
singleton-comparison,

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
2 changes: 1 addition & 1 deletion bin/update
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def copy():
]:
src = os.path.join(TMP, CONFIG['project_name'], filename)
dst = os.path.join(CWD, filename)
print("Copying " + filename)
print("Updating " + filename)
shutil.copy(src, dst)


Expand Down
1 change: 1 addition & 0 deletions log/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from .helpers import *
from .logger import *


WARN = WARNING

d = debug
Expand Down
1 change: 1 addition & 0 deletions log/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from . import filters, state


__all__ = ['reset', 'init', 'silence']

VERBOSITY_TO_LEVEL = {
Expand Down
1 change: 1 addition & 0 deletions log/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from . import utils


__all__ = ['log', 'debug', 'info', 'warning', 'error', 'critical', 'exception']


Expand Down
1 change: 1 addition & 0 deletions log/state.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging


default_level = logging.INFO
default_format = "%(levelname)s: %(name)s: %(message)s"

Expand Down
2 changes: 1 addition & 1 deletion scent.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Options:
@select_runnable('run_targets')
@file_validator
def python_files(filename):
return filename.endswith('.py')
return filename.endswith('.py') and '.py.' not in filename


@select_runnable('run_targets')
Expand Down
1 change: 1 addition & 0 deletions tests/other.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging


log = logging.getLogger('3rd-party')


Expand Down

0 comments on commit 941025e

Please sign in to comment.