Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jan 2, 2024
1 parent afb82af commit fb69eda
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 40 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
# Get version
_version = runpy.run_path(os.path.join(here, "..", "src", "pybase64", "_version.py"))["__version__"]
_version = runpy.run_path(os.path.join(here, "..", "src", "pybase64", "_version.py"))["_version"]
# The short X.Y version.
version = _version
# The full version, including alpha/beta/rc tags.
Expand Down
79 changes: 40 additions & 39 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,46 @@ test-requires = "-r requirements-test.txt"
test-command = "pytest {project}/tests"
build-verbosity = 1

[tool.mypy]
python_version = "3.7"
files = [
"src/**/*.py",
"test/**/*.py",
"noxfile.py",
"setup.py",
]
warn_unused_configs = true
show_error_codes = true

warn_redundant_casts = true
no_implicit_reexport = true
strict_equality = true
warn_unused_ignores = true
check_untyped_defs = true
ignore_missing_imports = false

disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_any_explicit = true
warn_return_any = true

no_implicit_optional = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true

[[tool.mypy.overrides]]
module = ["pybase64.__main__"]
disallow_any_explicit = false

[[tool.mypy.overrides]]
module = ["tests.test_pybase64"]
disallow_any_explicit = false


[tool.pytest.ini_options]
minversion = "7.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config", "-p", "no:legacypath"]
Expand Down Expand Up @@ -47,42 +87,3 @@ typing-modules = ["pybase64._typing"]
"typing.Callable".msg = "Use collections.abc.Callable instead."
"typing.Iterator".msg = "Use collections.abc.Iterator instead."
"typing.Sequence".msg = "Use collections.abc.Sequence instead."

[tool.mypy]
python_version = "3.7"
files = [
"src/**/*.py",
"test/**/*.py",
"noxfile.py",
"setup.py",
]
warn_unused_configs = true
show_error_codes = true

warn_redundant_casts = true
no_implicit_reexport = true
strict_equality = true
warn_unused_ignores = true
check_untyped_defs = true
ignore_missing_imports = false

disallow_subclassing_any = true
disallow_any_generics = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_any_explicit = true
warn_return_any = true

no_implicit_optional = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true

[[tool.mypy.overrides]]
module = ["pybase64.__main__"]
disallow_any_explicit = false

[[tool.mypy.overrides]]
module = ["tests.test_pybase64"]
disallow_any_explicit = false
1 change: 1 addition & 0 deletions src/pybase64/_version.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_version: str

0 comments on commit fb69eda

Please sign in to comment.