Skip to content

Pigs 74 workflow examples#4

Merged
isadoraPGoNitro merged 18 commits into
mainfrom
PIGS-74_Workflow_examples
Jan 6, 2026
Merged

Pigs 74 workflow examples#4
isadoraPGoNitro merged 18 commits into
mainfrom
PIGS-74_Workflow_examples

Conversation

@isadoraPGoNitro
Copy link
Copy Markdown
Contributor

Added scripts for: employee_policy_onboarding and prepare_pdf_for_distribution
Updated scripts for: pii_redaction, batch_process, bulk_password_protect, convert_cli, extract_data, redact_by_keyword
Updated plataform_api and created sign_api

@RogerThomas
Copy link
Copy Markdown

RogerThomas commented Dec 22, 2025

A few things

  • Use uv
  • Use httpx not requests
  • Copy and paste the following pyproject.toml file into the python directory and make sure the following 3 commands run with no errors uvx ruff check, uv run pylint, uv run pyright
[project]
name = "python"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.14"
dependencies = []
[tool.ruff]
format.preview = true
target-version = "py314"
line-length = 100
lint.select = [
  "A",    # builtins shadowing
  "ANN",  # type annotations
  "ARG",  # unused arguments
  "B",    # bugbear (common bugs & bad patterns)
  "BLE",  # blind excepts
  "C4",   # comprehensions
  "DTZ",  # datetime timezone
  "E",    # pycodestyle errors
  "ERA",  # eradicate commented-out code
  "FA",   # future annotations
  "FBT",  # boolean trap
  "F",    # pyflakes
  "FURB", # refurb - modern Python idioms
  "I",    # import sorting
  "ICN",  # import conventions
  "ISC",  # implicit str concat
  "N",    # naming conventions
  "NPY",  # numpy rules
  "PGH",  # pygrep-hooks
  "PTH",  # pathlib
  "PT",   # pytest style
  "RET",  # return statements
  "RUF",  # Ruff extra rules
  "TRY",  # tryceratops
  "S",    # security
  "SIM",  # simplifications
  "C90",  # mccabe complexity
  "TID",  # tidy imports
  "TC",   # typing under TYPE_CHECKING
  "TD",   # TODOs must be annotated
  "UP",   # pyupgrade / newer syntax
  "W",    # pycodestyle warnings
  "YTT",  # flake8-2020
  "T10",  # debugger statements
]
lint.ignore = ["S101", "S311", "TRY003", "TC006"]
lint.flake8-type-checking.strict = true

[tool.pyright]
typeCheckingMode = "strict"

# Pylint--------------------------------------------------------------------------
# https://github.com/atlassian-api/atlassian-python-api/blob/master/pyproject.toml
# Pylint--------------------------------------------------------------------------
[tool.pylint.FORMAT]
max-line-length = 100

[tool.pylint.MASTER]
jobs = 4
ignore-paths = '.venv'

[tool.pylint.REPORTS]
output-format = "colorized"
reports = "no"

[tool.pylint.TYPECHECK]
generated-members = []

[tool.pylint.BASIC]
good-names-rgxs = [".*Dep$"]
good-names = [
  "i",
  "j",
  "n",
]

[tool.pylint.SPELLING]
spelling-private-dict-file = "private-dictionary.txt"
spelling-dict = "en_GB"

[tool.pylint.DESIGN]
max-args = 7
min-public-methods = 1
max-positional-arguments = 5


[tool.pylint.LOGGING]

[tool.pylint.'MESSAGES CONTROL']
disable = ["logging-fstring-interpolation", "wrong-import-order"]

[dependency-groups]
dev = [
    "pyenchant>=3.3.0",
    "pylint>=4.0.4",
    "pyright>=1.1.407",
]

@RogerThomas
Copy link
Copy Markdown

@isadoraPGoNitro Let me know if any questions on the above comment

Copy link
Copy Markdown

@RogerThomas RogerThomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post is in comments

Comment thread samples/python/README.md Outdated
Comment thread samples/python/README.md
Comment thread samples/python/api/base_client.py Outdated
Comment thread samples/python/batch_process.py Outdated
Comment thread samples/python/api/base_client.py Outdated
@RogerThomas
Copy link
Copy Markdown

RogerThomas commented Dec 30, 2025

A few comments and all the scripts/main-files need to be updated to use typer or argparse or any proper CLI param tool. (AI would do this very quickly)

Comment thread samples/python/api/base_client.py Outdated
Comment thread samples/python/api/base_client.py Outdated
Comment thread samples/python/api/base_client.py Outdated
Comment thread samples/python/api/platform_api.py Outdated
Comment thread samples/python/api/platform_api.py Outdated
Comment thread samples/python/api/sign_api.py Outdated
Comment thread samples/python/batch_process.py Outdated
@isadoraPGoNitro isadoraPGoNitro merged commit 2c2970e into main Jan 6, 2026
3 checks passed
@isadoraPGoNitro isadoraPGoNitro deleted the PIGS-74_Workflow_examples branch January 6, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants