Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
Fix a naming bug (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon authored May 16, 2020
1 parent 7ddc560 commit a4f131e
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 99 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
ignore = C,E,W
exclude = .venv
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ jobs:
- run: poetry install

- run: pytest tests
- run: flake8

- run: mypy --ignore-missing-imports release_often/

- run: pytest tests

- run: black --check .
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
- run: poetry install

- run: pytest tests
- run: flake8

- run: mypy --ignore-missing-imports release_often/

- run: pytest tests

- run: black --check .


Expand Down
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

Work from a push event instead of a pull request event.

## 0.6.1
[PR #31](https://github.com/brettcannon/release-often/pull/31): Make reST changelog entry use anonymous links (thanks [brettcannon](https://github.com/brettcannon))

Expand Down
236 changes: 145 additions & 91 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ black = "^19.10b0"
mypy = "^0.770"
pytest = "^5.4.2"
pytest-asyncio = "^0.12.0"
flake8 = "^3.8.1"

[build-system]
requires = ["poetry>=0.12"]
Expand Down
2 changes: 1 addition & 1 deletion release_often/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def update_changelog(path, new_version, pr_event):
current_changelog, path.suffix, new_version, pr_event
)
path.write_text(new_changelog, encoding="utf-8")
return event["pull_request"]["title"]
return pr_event["title"]


def build():
Expand Down
2 changes: 0 additions & 2 deletions tests/test_flit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import pathlib

import pytest

from release_often import flit
Expand Down
2 changes: 0 additions & 2 deletions tests/test_poetry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import pathlib

import pytest
import tomlkit

Expand Down
1 change: 0 additions & 1 deletion tests/test_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import trio

from release_often import release
from . import data


class MockGitHubAPI:
Expand Down

0 comments on commit a4f131e

Please sign in to comment.