Skip to content

Commit

Permalink
Merge pull request #115 from twisted/114-ruff
Browse files Browse the repository at this point in the history
Switch to Ruff
  • Loading branch information
twm authored Sep 9, 2024
2 parents 39c8d82 + c21d877 commit 9f22282
Show file tree
Hide file tree
Showing 16 changed files with 169 additions and 155 deletions.
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
day: "friday"

- package-ecosystem: pip
directory: "/"
schedule:
interval: "weekly"
day: "friday"
ignore:
- dependency-name: ruff
update-types:
# Cut the frequency of linter Dependabot PRs.
# Ruff is 0ver, so this ignores all non-"major" releases.
- "version-update:semver-patch"

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Once the final version is made, it will become:
.. |pypi| image:: http://img.shields.io/pypi/v/incremental.svg
:alt: PyPI
:target: https://pypi.python.org/pypi/incremental
:target: https://pypi.org/project/incremental/
.. |calver| image:: https://img.shields.io/badge/calver-YY.MM.MICRO-22bfda.svg
:alt: calver: YY.MM.MICRO
Expand Down
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ backend-path = [".", "./src"] # See _build_meta.py
build-backend = "_build_meta:build_meta"

[project]
name = "incremental"
name = "Incremental"
dynamic = ["version"]
maintainers = [
{name = "Amber Brown", email = "hawkowl@twistedmatrix.com"},
Expand Down Expand Up @@ -60,8 +60,16 @@ version = {attr = "incremental._setuptools_version"}

[tool.incremental]

[tool.black]
target-version = ['py36', 'py37', 'py38']
[tool.ruff.lint]
select = [
"E",
"F",
"UP",
"I",
]
ignore = [
"E501",
]

[tool.towncrier]
filename = "NEWS.rst"
Expand Down
1 change: 1 addition & 0 deletions requirements_lint.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruff
8 changes: 8 additions & 0 deletions requirements_lint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements_lint.txt requirements_lint.in
#
ruff==0.6.4
# via -r requirements_lint.in
4 changes: 0 additions & 4 deletions setup.cfg

This file was deleted.

Loading

0 comments on commit 9f22282

Please sign in to comment.