diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..8dd399a --- /dev/null +++ b/.flake8 @@ -0,0 +1,3 @@ +[flake8] +max-line-length = 88 +extend-ignore = E203 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f76fb1..e6fdaaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased + + ## 1.2 - 2024-08-28 * Close instantiated sockets on connection error to prevent `ResourceWarning`s. @@ -25,6 +27,8 @@ * local logging encodes priority levels for journald/syslog, can be handled via journald config as seen in daemon/globus_cw_daemon_install/example-journald.conf + + ## beta-4 * raise custom Exception classes in client diff --git a/changelog.d/20240828_173012_kurtmckee_scriv.md b/changelog.d/20240828_173012_kurtmckee_scriv.md new file mode 100644 index 0000000..bd7a32f --- /dev/null +++ b/changelog.d/20240828_173012_kurtmckee_scriv.md @@ -0,0 +1,3 @@ +### Development + +- Use scriv to manage the CHANGELOG. diff --git a/changelog.d/README.txt b/changelog.d/README.txt new file mode 100644 index 0000000..95ae274 --- /dev/null +++ b/changelog.d/README.txt @@ -0,0 +1 @@ +Changelog fragments are stored here but managed by scriv during development. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a2f856f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +# scriv +# ----- + +[tool.scriv] +version = "command: grep -e 'version=' client/setup.py | grep -oPe '[\\d.]+'" +categories = [ + "Python support", + "Added", + "Fixed", + "Removed", + "Changed", + "Deprecated", + "Security", + "Development", +] +entry_title_template = "{{ version }} - {{ date.strftime('%Y-%m-%d') }}" +format = "md" +md_header_level = "2" +fragment_directory = "changelog.d" +insert_marker = "scriv-insert-here" +main_branches = ["main"] + + +# isort +# ----- + +[tool.isort] +profile = "black" + + +# mypy +# ---- + +[tool.mypy] +ignore_missing_imports = true +sqlite_cache = true + + +# pytest +# ------ + +[tool.pytest.ini_options] +addopts = "--color=yes" +filterwarnings = [ + "error", +] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 5143126..0000000 --- a/setup.cfg +++ /dev/null @@ -1,22 +0,0 @@ -# for tooling config - -[isort] -multi_line_output = 3 -include_trailing_comma = true -force_grid_wrap = 0 -combine_as_imports = true -line_length = 88 -known_third_party=boto3,botocore - - -[flake8] -exclude = .git,__pycache__,.eggs,venv,.venv -max-line-length = 88 - -# ref: https://github.com/ambv/black/blob/master/.flake8 -# W503/W504 conflict, black causes E203 -ignore = W503,W504,E203, - - -[mypy] -ignore_missing_imports = true