-
Notifications
You must be signed in to change notification settings - Fork 6
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 #48 from gforcada/improve-tooling
Improve tooling
- Loading branch information
Showing
13 changed files
with
226 additions
and
320 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,50 @@ | ||
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-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import ast | ||
|
||
from flake8 import utils as stdin_utils | ||
|
||
import ast | ||
|
||
|
||
class Flake8Pep3101: | ||
name = 'flake8_pep3101' | ||
|
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,60 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "flake8-pep3101" | ||
version = "2.0.1.dev0" | ||
authors = [ | ||
{ name="Gil Forcada Codinachs", email="[email protected]" }, | ||
] | ||
description = "Checks for old string formatting" | ||
keywords = ["pep8", "flake8", "python", "pycodestyle", "string formatting"] | ||
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 :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Quality Assurance", | ||
] | ||
dependencies = ["flake8"] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/gforcada/flake8-pep3101" | ||
"Bug Tracker" = "https://github.com/gforcada/flake8-pep3101/issues" | ||
"Changelog" = "https://github.com/gforcada/flake8-pep3101/blob/main/CHANGES.rst" | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest"] | ||
|
||
[project.entry-points."flake8.extension"] | ||
S001 = "flake8_pep3101:Flake8Pep3101" | ||
|
||
[tool.isort] | ||
profile = "plone" | ||
|
||
[tool.black] | ||
target-version = ["py38"] | ||
skip-string-normalization = true | ||
|
||
[tool.check-manifest] | ||
ignore = [ | ||
".vscode/*", | ||
"venv/*", | ||
] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.