diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 976fbe32..d895ed05 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,9 +13,9 @@ repos: - repo: local hooks: - id: makefile - name: run make lint + name: run make ci-lint entry: make - args: ["lint"] + args: ["ci-lint"] language: system pass_filenames: false verbose: true diff --git a/CHANGELOG.md b/CHANGELOG.md index ba65cabf..868de883 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project closely adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 1.0.1 +- chore - fix pyproject.toml authors and urls +- change - add pre-commit to makefile + ## 1.0.0 - change to 1.0.0! - chore - fix GH workflow for test publish diff --git a/Makefile b/Makefile index 0c3aaeb2..5a91fe14 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ setup: src/* fix: # make fix + uv sync uv run ruff format . uv run ruff check . --fix uv run cucu lint --fix features @@ -23,6 +24,17 @@ lint: # make lint # lint code uv run ruff check . + # pre-commit + SKIP=makefile uv run pre-commit run --show-diff-on-failure --from-ref origin/HEAD --to-ref HEAD + # lint .feature files + uv run cucu lint features + +ci-lint: + # make ci-lint + # only for use by CI through pre-commit + # lint code + uv run ruff check . + # don't run pre-commit since CI already did # lint .feature files uv run cucu lint features @@ -55,4 +67,4 @@ coverage: src/* tests/* echo "open HTML coverage report at htmlcov/index.html" # disable caching for all make targets -.PHONY: all help format lint test build coverage +.PHONY: all help format lint ci-lint test build coverage diff --git a/pyproject.toml b/pyproject.toml index 072cfc26..ca9f6e57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,25 @@ [project] name = "cucu" -version = "1.0.0" +version = "1.0.1" description = "Easy BDD web testing" readme = "README.md" license = { text = "The Clear BSD License" } keywords = ["cucumber", "selenium", "behave"] -homepage = "https://github.com/dominodatalab/cucu" -repository = "https://github.com/dominodatalab/cucu" -authors = [{ name = "Domino Data Lab", email = "open-source@dominodatalab.com" }] +authors = [ + {name = "Domino Data Lab", email = "open-source@dominodatalab.com"}, + {name = "Rodney Gomes", email = "107359+rlgomes@users.noreply.github.com"}, + {name = "Cedric Young", email = "4129217+ccedricyoung@users.noreply.github.com"}, + {name = "Xin Dong", email = "104880864+ddl-xin@users.noreply.github.com"}, + {name = "Kavya", email = "91882851+ddl-kavya@users.noreply.github.com"}, + {name = "Kevin Garton", email = "71028750+ddl-kgarton@users.noreply.github.com"}, + {name = "Joy Liao", email = "107583686+ddl-joy-liao@users.noreply.github.com"}, +] +maintainers = [ + {name = "Domino Data Lab", email = "open-source@dominodatalab.com"}, + {name = "Cedric Young", email = "4129217+ccedricyoung@users.noreply.github.com"}, + {name = "Kevin Garton", email = "71028750+ddl-kgarton@users.noreply.github.com"}, + {name = "Brian Colby", email = "92048365+ddl-bcolby@users.noreply.github.com"} +] classifiers = [ "Development Status :: 4 - Beta", "Environment :: Console", @@ -52,6 +64,11 @@ dependencies = [ "tenacity~=9.0.0", ] +[project.urls] +Homepage = "https://github.com/dominodatalab/cucu" +Download = "https://pypi.org/project/cucu/" +"Source Code" = "https://github.com/dominodatalab/cucu" + [project.scripts] cucu = "cucu.cli:main" diff --git a/uv.lock b/uv.lock index 26a3ef5a..1a46c6f7 100644 --- a/uv.lock +++ b/uv.lock @@ -263,7 +263,7 @@ toml = [ [[package]] name = "cucu" -version = "1.0.0" +version = "1.0.1" source = { editable = "." } dependencies = [ { name = "beautifulsoup4" },