-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: begin process to publish to pypi
- Loading branch information
Showing
18 changed files
with
59 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"MD013": { | ||
"line_length": 120, | ||
"tables": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[formatting] | ||
array_auto_expand = false | ||
reorder_arrays = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
rules: | ||
line-length: | ||
max: 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,54 +3,59 @@ requires = ["flit_core >=3.4,<4"] | |
build-backend = "flit_core.buildapi" | ||
|
||
[project] | ||
name = "nt-utils" | ||
authors = [{name = "Anton Vasilev", email = "[email protected]"}] | ||
name = "replete" | ||
maintainers = [{ name = "Artem Vasenin", email = "[email protected]" }] | ||
authors = [{ name = "Anton Vasilev" }, { name = "Artem Vasenin" }] | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
dynamic = ["version", "description"] | ||
dependencies = [ | ||
"python-dateutil", | ||
"docstring-parser", | ||
"xxhash", | ||
"coloredlogs", | ||
] | ||
requires-python = ">=3.9" | ||
dynamic = ["description", "version"] | ||
dependencies = ["coloredlogs", "docstring-parser", "python-dateutil", "xxhash"] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"nt-dev>=0.34", | ||
"pytest-asyncio", | ||
"types-xxhash", | ||
"types-python-dateutil", | ||
"flaky", | ||
] | ||
dev = [ | ||
"nt-utils[test]", | ||
] | ||
|
||
[tool.flit.module] | ||
name = "nt_utils" | ||
test = ["flaky", "pytest", "pytest-asyncio", "types-python-dateutil", "types-xxhash"] | ||
dev = ["black", "replete[test]", "ruff"] | ||
|
||
[tool.flit.sdist] | ||
include = [ | ||
"README.md", | ||
] | ||
exclude = [ | ||
".gitignore", | ||
"tests/*", | ||
] | ||
include = ["README.md"] | ||
exclude = [".github", ".gitignore", "tests/*"] | ||
|
||
[tool.semantic_release] | ||
version_variable = "nt_utils/__init__.py:__version__" | ||
version_variable = "replete/__init__.py:__version__" | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
addopts = "--doctest-modules --no-success-flaky-report" | ||
asyncio_mode = "auto" | ||
|
||
[tool.mypy] | ||
files = ["."] | ||
|
||
[tool.flake8] | ||
per-file-ignores = [ | ||
"__init__.py:F401,F403,F405", | ||
"tests/test_cli.py:W291", | ||
[tool.black] | ||
line-length = 120 | ||
skip-magic-trailing-comma = true | ||
|
||
[tool.yamlfix] | ||
line_length = 120 | ||
section_whitelines = 1 | ||
|
||
[tool.pyright] | ||
strictParameterNoneValue = false | ||
typeCheckingMode = "basic" | ||
|
||
[tool.ruff] | ||
target-version = "py39" | ||
line-length = 120 | ||
[tool.ruff.lint] | ||
preview = true | ||
select = ["A", "ARG", "B", "BLE", "C4", "COM", "E", "ERA", "F", "FBT", "FIX", "FLY", "FURB", "I", "IC", "INP", "ISC", "LOG", "N", "NPY", "PERF", "PIE", "PT", "PTH", "Q", "R", "RET", "RSE", "S", "SIM", "SLF", "T20", "TCH", "TD", "TID", "TRY", "UP", "W"] | ||
fixable = ["ALL"] | ||
ignore = ["A003", "E203", "FIX002", "FURB113", "N817", "PTH123", "RET503", "S113", "TD002", "TD003", "TRY003", "UP007", "UP035"] | ||
[tool.ruff.per-file-ignores] | ||
"**/__init__.py" = [ | ||
"F401", # Allow unused imports in module files | ||
] | ||
"tests/**/*.py" = [ | ||
"E501", # Test strings can be long | ||
"S101", # Asserts in tests are fine | ||
"T201", # Prints are useful for debugging | ||
"TCH001", | ||
"TCH002", | ||
"TCH003", # Tests don't need to be super performant, prefer simpler code | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters