Skip to content

Commit 75dc581

Browse files
Updated files with 'repo_helper'. (#17)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 740c174 commit 75dc581

File tree

6 files changed

+40
-11
lines changed

6 files changed

+40
-11
lines changed

.github/workflows/python_ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: "windows-2019"
1414
continue-on-error: ${{ matrix.config.experimental }}
1515
env:
16-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.5'
16+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-alpha.5,pypy-3.6'
1717

1818
strategy:
1919
fail-fast: False
@@ -24,6 +24,7 @@ jobs:
2424
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2525
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
2626
- {python-version: "3.10.0-alpha.5", testenvs: "py310-dev,build", experimental: True}
27+
- {python-version: "pypy-3.6", testenvs: "pypy3,build", experimental: False}
2728

2829
steps:
2930
- name: Checkout 🛎️

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
files: ^flake8_github_actions/.*\.py$
4242

4343
- repo: https://github.com/domdfcoding/flake2lint
44-
rev: v0.2.0
44+
rev: v0.3.0
4545
hooks:
4646
- id: flake2lint
4747

@@ -68,7 +68,7 @@ repos:
6868
- id: forbid-crlf
6969

7070
- repo: https://github.com/repo-helper/formate
71-
rev: v0.3.1
71+
rev: v0.4.2
7272
hooks:
7373
- id: formate
7474
exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.(_)?py$

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ confidence=
6666
# no Warning level messages displayed, use"--disable=all --enable=classes
6767
# --disable=W"
6868
disable=all
69-
enable=assert-on-tuple,astroid-error,bad-except-order,bad-inline-option,bad-option-value,bad-reversed-sequence,bare-except,binary-op-exception,boolean-datetime,catching-non-exception,cell-var-from-loop,confusing-with-statement,consider-merging-isinstance,consider-using-enumerate,consider-using-ternary,continue-in-finally,cyclic-import,deprecated-pragma,django-not-available,duplicate-except,duplicate-key,eval-used,exec-used,expression-not-assigned,fatal,file-ignored,fixme,global-at-module-level,global-statement,global-variable-not-assigned,global-variable-undefined,http-response-with-content-type-json,http-response-with-json-dumps,invalid-all-object,invalid-characters-in-docstring,len-as-condition,literal-comparison,locally-disabled,locally-enabled,lost-exception,lowercase-l-suffix,misplaced-bare-raise,missing-kwoa,mixed-line-endings,model-has-unicode,model-missing-unicode,model-no-explicit-unicode,model-unicode-not-callable,multiple-imports,multiple-statements,new-db-field-with-default,non-ascii-bytes-literals,nonexistent-operator,not-in-loop,notimplemented-raised,overlapping-except,parse-error,pointless-statement,pointless-string-statement,raising-bad-type,raising-non-exception,raw-checker-failed,redefine-in-handler,redefined-argument-from-local,redefined-builtin,redundant-content-type-for-json-response,reimported,relative-import,return-outside-function,simplifiable-if-statement,singleton-comparison,syntax-error,trailing-comma-tuple,trailing-newlines,unbalanced-tuple-unpacking,undefined-all-variable,undefined-loop-variable,unexpected-line-ending-format,unidiomatic-typecheck,unnecessary-lambda,unnecessary-pass,unnecessary-semicolon,unneeded-not,unpacking-non-sequence,unreachable,unrecognized-inline-option,used-before-assignment,useless-else-on-loop,using-constant-test,wildcard-import,yield-outside-function,useless-return
69+
enable=assert-on-tuple,astroid-error,bad-except-order,bad-inline-option,bad-option-value,bad-reversed-sequence,bare-except,binary-op-exception,boolean-datetime,catching-non-exception,cell-var-from-loop,confusing-with-statement,consider-merging-isinstance,consider-using-enumerate,consider-using-ternary,continue-in-finally,cyclic-import,deprecated-pragma,django-not-available,duplicate-except,duplicate-key,eval-used,exec-used,expression-not-assigned,fatal,file-ignored,fixme,global-at-module-level,global-statement,global-variable-not-assigned,global-variable-undefined,http-response-with-content-type-json,http-response-with-json-dumps,invalid-all-object,invalid-characters-in-docstring,len-as-condition,literal-comparison,locally-disabled,locally-enabled,lost-exception,lowercase-l-suffix,misplaced-bare-raise,missing-kwoa,mixed-line-endings,model-has-unicode,model-missing-unicode,model-no-explicit-unicode,model-unicode-not-callable,multiple-imports,new-db-field-with-default,non-ascii-bytes-literals,nonexistent-operator,not-in-loop,notimplemented-raised,overlapping-except,parse-error,pointless-statement,pointless-string-statement,raising-bad-type,raising-non-exception,raw-checker-failed,redefine-in-handler,redefined-argument-from-local,redefined-builtin,redundant-content-type-for-json-response,reimported,relative-import,return-outside-function,simplifiable-if-statement,singleton-comparison,syntax-error,trailing-comma-tuple,trailing-newlines,unbalanced-tuple-unpacking,undefined-all-variable,undefined-loop-variable,unexpected-line-ending-format,unidiomatic-typecheck,unnecessary-lambda,unnecessary-pass,unnecessary-semicolon,unneeded-not,unpacking-non-sequence,unreachable,unrecognized-inline-option,used-before-assignment,useless-else-on-loop,using-constant-test,wildcard-import,yield-outside-function,useless-return
7070

7171
[REPORTS]
7272

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,27 @@
22
requires = [ "setuptools>=40.6.0", "wheel>=0.34.2",]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "flake8-github-actions"
7+
version = "0.1.0"
8+
description = "GitHub Actions integration for flake8."
9+
readme = "README.rst"
10+
keywords = [ "flake8", "github", "github-actions",]
11+
dynamic = [ "requires-python", "classifiers", "dependencies",]
12+
[[project.authors]]
13+
email = "dominic@davis-foster.co.uk"
14+
name = "Dominic Davis-Foster"
15+
516
[tool.importcheck]
617
always = [ "flake8_github_actions",]
18+
19+
[project.license]
20+
file = "LICENSE"
21+
22+
[project.urls]
23+
Homepage = "https://github.com/domdfcoding/flake8-github-actions"
24+
"Issue Tracker" = "https://github.com/domdfcoding/flake8-github-actions/issues"
25+
"Source Code" = "https://github.com/domdfcoding/flake8-github-actions"
26+
27+
[project.entry-points."flake8.report"]
28+
github = "flake8_github_actions:GitHubFormatter"

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# This file is managed by 'repo_helper'. Don't edit it directly.
33

44
# stdlib
5+
import shutil
56
import sys
67

78
# 3rd party
@@ -19,3 +20,5 @@
1920
py_modules=[],
2021
version=__version__,
2122
)
23+
24+
shutil.rmtree("flake8_github_actions.egg-info", ignore_errors=True)

tox.ini

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
[tox]
1616
envlist = py36, py37, py38, py39, py310-dev, pypy3, mypy, build
1717
skip_missing_interpreters = True
18+
isolated_build = True
1819
requires =
1920
pip>=20.3.3
20-
tox-envlist>=0.1.0
21-
isolated_build = True
21+
tox-envlist>=0.2.1
22+
tox-pip-version>=0.0.7
2223

2324
[envlists]
2425
test = py36, py37, py38, py39, py310-dev, pypy3
@@ -47,7 +48,7 @@ commands =
4748
basepython = python3.6
4849
changedir = {toxinidir}
4950
ignore_errors = True
50-
skip_install = True
51+
skip_install = False
5152
deps =
5253
flake8 >=3.8.2
5354
flake8-2020 >= 1.6.0
@@ -60,6 +61,8 @@ deps =
6061
flake8-sphinx-links>=0.0.4
6162
flake8-strftime>=0.1.1
6263
flake8-typing-imports>=1.10.0
64+
flake8-encodings>=0.1.0
65+
flake8-slots>=0.1.0
6366
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
6467
git+https://github.com/domdfcoding/flake8-quotes.git
6568
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
@@ -71,7 +74,7 @@ commands = python3 -m flake8_rst_docstrings_sphinx flake8_github_actions --allow
7174
basepython = python3.6
7275
ignore_errors = True
7376
changedir = {toxinidir}
74-
deps = mypy==0.790
77+
deps = mypy==0.800
7578
commands = mypy flake8_github_actions {posargs}
7679

7780
[testenv:pyup]
@@ -84,15 +87,15 @@ commands = pyup_dirs flake8_github_actions --py36-plus --recursive
8487

8588
[flake8]
8689
max-line-length = 120
87-
select = E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E225 E226 E227 E228 E231 E241 E242 E251 E261 E262 E265 E271 E272 E303 E304 E306 E402 E502 E703 E711 E712 E713 E714 E721 W291 W292 W293 W391 W504 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
90+
select = E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E225 E226 E227 E228 E231 E241 E242 E251 E261 E262 E265 E271 E272 E303 E304 E306 E402 E502 E703 E711 E712 E713 E714 E721 W291 W292 W293 W391 W504 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT005 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 ENC001 ENC002 ENC003 ENC004 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002 SLOT003
8891
exclude = doc-source,.git,__pycache__,old,build,dist,__pkginfo__.py,setup.py,.tox,venv
8992
rst-directives =
9093
TODO
9194
envvar
9295
extras-require
9396
per-file-ignores =
94-
tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
95-
*/*.pyi: E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000
97+
tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002 SLOT003
98+
*/*.pyi: E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002 SLOT003
9699
pytest-parametrize-names-type = csv
97100
inline-quotes = "
98101
multiline-quotes = """

0 commit comments

Comments
 (0)