-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uv, ruff, just, et al.
- Loading branch information
Showing
14 changed files
with
511 additions
and
83 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
############################################################ | ||
# All commands are to be run inside a virtual environment. # | ||
# E.g., # | ||
# uv run just lint # | ||
############################################################ | ||
|
||
|
||
# check formatting via ruff | ||
formatcheck: | ||
ruff format --check . | ||
|
||
# check type hints via mypy | ||
typecheck: | ||
mypy --strict . | ||
|
||
# run linter via ruff | ||
lint: | ||
ruff check . | ||
|
||
# run tests via pytest | ||
test: | ||
pytest -svv . | ||
|
||
# run all checks | ||
checkall: | ||
just formatcheck | ||
just typecheck | ||
just lint | ||
just test |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
# tests | ||
**/*.py { | ||
prep: pytest | ||
prep: mypy --strict mdut | ||
prep: flake8 | ||
prep: python mdut/mdut.py http://example.com | ||
prep: python mdut/mdut.py -s inline http://example.com | ||
# check formatting via ruff | ||
prep: ruff format --check . | ||
|
||
# check type hints via mypy | ||
prep: mypy --strict . | ||
|
||
# run linter via ruff | ||
prep: ruff check . | ||
|
||
# run tests via pytest | ||
prep: pytest -svv . | ||
} | ||
|
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 |
---|---|---|
@@ -1,22 +1,32 @@ | ||
[tool.poetry] | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "mdut" | ||
version = "22.6.0" | ||
dependencies = [ | ||
"httpx>=0.27.0", | ||
"beautifulsoup4>=4.12.3", | ||
"pyperclip>=1.9.0", | ||
"click>=8.1.7", | ||
] | ||
requires-python = ">=3.9" | ||
authors = [ | ||
{name = "Nik Kantar", email = "[email protected]" }, | ||
] | ||
description = "Markdown URL tag generator" | ||
license = "MIT" | ||
authors = ["Nik Kantar <[email protected]>"] | ||
readme = "README.md" | ||
homepage = "https://github.com/nkantar/mdut" | ||
repository = "https://github.com/nkantar/mdut" | ||
documentation = "https://github.com/nkantar/mdut" | ||
|
||
keywords = ["markdown"] | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Software Development :: Code Generators", | ||
"Topic :: Software Development :: Libraries", | ||
|
@@ -25,33 +35,14 @@ classifiers = [ | |
"Typing :: Typed", | ||
] | ||
|
||
packages = [ | ||
{ include = "mdut" }, | ||
] | ||
[project.scripts] | ||
mdut = "src.mdut:mdut" | ||
|
||
include = [ | ||
"CHANGELOG.md", | ||
"LICENSE", | ||
"README.md", | ||
[tool.uv] | ||
dev-dependencies = [ | ||
"ruff>=0.6.2", | ||
"pytest>=8.3.2", | ||
"mypy>=1.11.2", | ||
"pdbpp>=0.10.3", | ||
"types-beautifulsoup4>=4.12.0.20240511", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
httpx = "^0.23.0" | ||
beautifulsoup4 = "^4.11.1" | ||
pyperclip = "^1.8.2" | ||
click = "^8.1.3" | ||
|
||
[tool.poetry.dev-dependencies] | ||
black = "^22.3.0" | ||
pytest = "^7.1.2" | ||
mypy = "^0.960" | ||
flake8 = "^4.0.1" | ||
types-beautifulsoup4 = "^4.11.1" | ||
|
||
[tool.poetry.scripts] | ||
mdut = "mdut.mdut:mdut" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
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 @@ | ||
"""Main mdut module.""" |
File renamed without changes.
Empty file.
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 @@ | ||
"""Tests for all of mdut.""" |
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
Oops, something went wrong.