-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from gforcada/improve-tooling
Improve tooling
- Loading branch information
Showing
11 changed files
with
201 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[flake8] | ||
doctests = 1 | ||
ignore = | ||
# black takes care of line length | ||
E501, | ||
# black takes care of where to break lines | ||
W503, | ||
# black takes care of spaces within slicing (list[:]) | ||
E203, | ||
# black takes care of spaces after commas | ||
E231, | ||
# as one has to use self.XX it should not be a problem | ||
A003, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
ci: | ||
autofix_prs: false | ||
autoupdate_schedule: monthly | ||
|
||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.14.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-builtins | ||
- flake8-comprehensions | ||
- flake8-debugger | ||
- flake8-deprecated | ||
- flake8-isort | ||
- flake8-pep3101 | ||
- flake8-print | ||
- flake8-quotes | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.6 | ||
hooks: | ||
- id: codespell | ||
additional_dependencies: | ||
- tomli | ||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.49" | ||
hooks: | ||
- id: check-manifest | ||
- repo: https://github.com/regebro/pyroma | ||
rev: "4.2" | ||
hooks: | ||
- id: pyroma | ||
- repo: https://github.com/mgedmin/check-python-versions | ||
rev: "0.21.3" | ||
hooks: | ||
- id: check-python-versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,61 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.2"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "flake8-isort" | ||
version = "6.1.1.dev0" | ||
authors = [{ name = "Gil Forcada", email = "[email protected]" }] | ||
license = { text = "GPL version 2" } | ||
description = "flake8 plugin that integrates isort ." | ||
authors = [ | ||
{ name="Gil Forcada Codinachs", email="[email protected]" }, | ||
] | ||
description = "flake8 plugin that integrates isort" | ||
keywords = ["pep8", "flake8", "python", "isort", "imports"] | ||
license = {file = "LICENSE"} | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Framework :: Flake8", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Quality Assurance", | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Framework :: Flake8", | ||
'Framework :: Plone', | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Quality Assurance", | ||
] | ||
urls = { Homepage = "https://github.com/gforcada/flake8-isort" } | ||
requires-python = ">=3.8" | ||
dependencies = ["flake8", "isort >= 5.0.0, <6"] | ||
|
||
[project.entry-points] | ||
"flake8.extension" = { I00 = "flake8_isort:Flake8Isort" } | ||
[project.urls] | ||
"Homepage" = "https://github.com/gforcada/flake8-isort" | ||
"Bug Tracker" = "https://github.com/gforcada/flake8-isort/issues" | ||
"Changelog" = "https://github.com/gforcada/flake8-isort/blob/main/CHANGES.rst" | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest"] | ||
|
||
[tool.setuptools] | ||
py-modules = ["flake8_isort"] | ||
zip-safe = false | ||
include-package-data = true | ||
[project.entry-points."flake8.extension"] | ||
I00 = "flake8_isort:Flake8Isort" | ||
|
||
[tool.isort] | ||
profile = "plone" | ||
|
||
[tool."zest.releaser"] | ||
create-wheel = "yes" | ||
[tool.black] | ||
target-version = ["py38"] | ||
skip-string-normalization = true | ||
|
||
[tool.check-manifest] | ||
ignore = """ | ||
.installed.cfg""" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
ignore = [ | ||
".vscode/*", | ||
"venv/*", | ||
] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.