Skip to content

Commit

Permalink
Use scriv; consolidate configs in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Aug 28, 2024
1 parent 57dac0a commit 82a8d16
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
extend-ignore = E203
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

<!-- scriv-insert-here -->

## 1.2 - 2024-08-28

* Close instantiated sockets on connection error to prevent `ResourceWarning`s.
Expand All @@ -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

<!-- scriv-end-here -->

## beta-4

* raise custom Exception classes in client
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/20240828_173012_kurtmckee_scriv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Development

- Use scriv to manage the CHANGELOG.
1 change: 1 addition & 0 deletions changelog.d/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changelog fragments are stored here but managed by scriv during development.
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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",
]
22 changes: 0 additions & 22 deletions setup.cfg

This file was deleted.

0 comments on commit 82a8d16

Please sign in to comment.