Skip to content

Commit

Permalink
Merge pull request #4 from williamcanin/main
Browse files Browse the repository at this point in the history
bug fix in logging lib.
  • Loading branch information
williamcanin committed Nov 17, 2021
2 parents a7e91b7 + 61fce7b commit f09faa0
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ profile_default/
ipython_config.py

# pyenv
.python-version
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.7
30 changes: 15 additions & 15 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,34 @@
import os
import sys

sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath("."))


# -- Project information -----------------------------------------------------

project = 'snakypy-helpers'
copyright = '2021, William C. Canin'
author = 'William C. Canin'
project = "snakypy-helpers"
copyright = "2021, William C. Canin"
author = "William C. Canin"

version = "0.2.1"
version = "0.2.2"
# The full version, including alpha/beta/rc tags
release = "0.2.1"
release = "0.2.2"


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# The language for content autogenerated by Sphinx. Refer to documentation
Expand All @@ -51,7 +51,7 @@
language = None

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
Expand All @@ -62,17 +62,17 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
html_theme = "alabaster"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]

source_suffix = {
'.rst': 'restructuredtext',
'.txt': 'markdown',
'.md': 'markdown',
".rst": "restructuredtext",
".txt": "markdown",
".md": "markdown",
}

# The master toctree document.
Expand Down
2 changes: 2 additions & 0 deletions poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[virtualenvs]
in-project = false
57 changes: 28 additions & 29 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,43 +1,41 @@
[tool.poetry]
name = "snakypy-helpers"
version = "0.2.1"
description = "Snakypy Helpers is a package that contains code ready to assist in the development of packages/applications so as not to replicate the code."
authors = ["William C. Canin <william.costa.canin@gmail.com>"]
readme = "README.rst"
license = "MIT license"
keywords=["snakypy", "helpers", "linux"]
description = "Snakypy Helpers is a package that contains code ready to assist in the development of packages/applications so as not to replicate the code."
homepage = "https://github.com/snakypy/snakypy-helpers"
repository = "https://github.com/snakypy/snakypy-helpers"
include = ["LICENSE"]
keywords = ["snakypy", "helpers", "linux"]
license = "MIT license"
name = "snakypy-helpers"
readme = "README.rst"
repository = "https://github.com/snakypy/snakypy-helpers"
version = "0.2.2"

packages = [
{include = "snakypy"},
{include = "snakypy"},
]

[tool.poetry.dependencies]
python = "^3.9"
pyfiglet = "0.8.post1"
python = "^3.9"

[tool.poetry.dev-dependencies]
twine = "^3.4.1"
wheel = "^0.34.2"
flake8 = "^3.9.2"
tox = "^3.23.1"
black = "^21.5b1"
sphinx = "^4.0.1"
sphinx-rtd-theme = "^0.5.2"
recommonmark = "^0.7.1"
pytest = "^6.2.4"
pytest-runner = "^5.3.1"
flake8 = "^3.9.2"
imake = "^0.1.2"
ipython = "^7.24.0"
isort = "^5.8.0"
mypy = "^0.812"
pytest = "^6.2.4"
pytest-runner = "^5.3.1"
recommonmark = "^0.7.1"
sphinx = "^4.0.1"
sphinx-rtd-theme = "^0.5.2"
tomlkit = "^0.7.0"
imake = "^0.1.2"
isort = "^5.8.0"
tox = "^3.23.1"
twine = "^3.4.1"
wheel = "^0.34.2"

[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
(
Expand All @@ -56,23 +54,24 @@ exclude = '''
)/
)
'''

include = '\.pyi?$'
line-length = 88

[tool.isort]
profile = "black"
force_grid_wrap = 0
include_trailing_comma = true
line_length = 88
multi_line_output = 3
profile = "black"
src_paths = ["snakypy", "tests"]
line_length = 88
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true

[tool.pytest.ini_options]
minversion = "6.0"
cache_dir = "/tmp/.pytest_cache"
minversion = "6.0"
# addopts = "-ra -q"
testpaths = ["tests"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
10 changes: 5 additions & 5 deletions snakypy/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
"""
from os.path import abspath, dirname, join

import snakypy.helpers.ansi
import snakypy.helpers.ansi # noqa: F401
import snakypy.helpers.calcs
import snakypy.helpers.catches
import snakypy.helpers.console
import snakypy.helpers.decorators
import snakypy.helpers.files
import snakypy.helpers.os
import snakypy.helpers.path
from snakypy.helpers.ansi import BG, FG, NONE, SGR
from snakypy.helpers.console import entry, pick, printer
import snakypy.helpers.path # noqa: F401
from snakypy.helpers.ansi import BG, FG, NONE, SGR # noqa: F401
from snakypy.helpers.console import entry, pick, printer # noqa: F401
from snakypy.helpers.files import eqversion

__info__ = {
Expand All @@ -31,7 +31,7 @@
"email": "contact.snakypy@gmail.com",
"website": "https://snakypy.github.io",
"github": "https://github.com/snakypy",
"version": "0.2.1",
"version": "0.2.2",
}

# Keep the versions the same on pyproject.toml and __init__.py
Expand Down
1 change: 1 addition & 0 deletions snakypy/helpers/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def record(
format=self.formatted,
datefmt=self.date_format,
level=logging.INFO,
force=True,
)

# Verify message exception or not
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
minversion = 3.3.0
isolated_build = True
envlist = py39, flake8
envlist = python3.9, flake8

[testenv]
setenv =
Expand Down

0 comments on commit f09faa0

Please sign in to comment.