flake8-no-implicit-concat 0.3.4__tar.gz → 0.3.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flake8_no_implicit_concat-0.3.6/.codecov.yaml +9 -0
- flake8_no_implicit_concat-0.3.6/.editorconfig +14 -0
- flake8_no_implicit_concat-0.3.6/.github/dependabot.yml +11 -0
- flake8_no_implicit_concat-0.3.6/.github/workflows/build.yaml +122 -0
- flake8_no_implicit_concat-0.3.6/.gitignore +11 -0
- flake8_no_implicit_concat-0.3.6/CHANGELOG.md +178 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/Makefile +5 -5
- {flake8-no-implicit-concat-0.3.4/flake8_no_implicit_concat.egg-info → flake8_no_implicit_concat-0.3.6}/PKG-INFO +24 -8
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/README.md +2 -2
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/flake8_no_implicit_concat/__init__.py +27 -4
- flake8_no_implicit_concat-0.3.6/flake8_no_implicit_concat/_version.py +16 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6/flake8_no_implicit_concat.egg-info}/PKG-INFO +24 -8
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/flake8_no_implicit_concat.egg-info/SOURCES.txt +8 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/flake8_no_implicit_concat.egg-info/requires.txt +0 -3
- flake8_no_implicit_concat-0.3.6/pyproject.toml +3 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/setup.cfg +9 -8
- flake8_no_implicit_concat-0.3.6/setup.py +13 -0
- flake8_no_implicit_concat-0.3.6/tests/run_flake8/classdoc.py +11 -0
- flake8_no_implicit_concat-0.3.6/tests/run_flake8/fstring.py +9 -0
- flake8_no_implicit_concat-0.3.6/tests/run_flake8/fstring.py.expected +3 -0
- flake8_no_implicit_concat-0.3.6/tests/run_flake8/noerror.py.expected +0 -0
- flake8-no-implicit-concat-0.3.4/flake8_no_implicit_concat/_version.py +0 -3
- flake8-no-implicit-concat-0.3.4/pyproject.toml +0 -3
- flake8-no-implicit-concat-0.3.4/setup.py +0 -17
- flake8-no-implicit-concat-0.3.4/tests/run_flake8/fstring.py +0 -4
- flake8-no-implicit-concat-0.3.4/tests/run_flake8/fstring.py.expected +0 -1
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/LICENSE +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/MANIFEST.in +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/flake8_no_implicit_concat.egg-info/dependency_links.txt +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/flake8_no_implicit_concat.egg-info/entry_points.txt +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/flake8_no_implicit_concat.egg-info/top_level.txt +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/__init__.py +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/.gitignore +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/Run.sh +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/backslash.py +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/backslash.py.expected +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/blanklines.py +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/blanklines.py.expected +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/bytes.py +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/bytes.py.expected +0 -0
- /flake8-no-implicit-concat-0.3.4/tests/run_flake8/noerror.py.expected → /flake8_no_implicit_concat-0.3.6/tests/run_flake8/classdoc.py.expected +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/comment.py +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/comment.py.expected +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/multiline.py +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/multiline.py.expected +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/noerror.py +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/oneline.py +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/oneline.py.expected +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/triplequote.py +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/triplequote.py.expected +0 -0
- {flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/test_checker.py +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "github-actions" # See documentation for possible values
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "weekly"
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
name: build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
types: [opened, synchronize]
|
|
9
|
+
branches:
|
|
10
|
+
- master
|
|
11
|
+
workflow_dispatch: {}
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
publish:
|
|
15
|
+
timeout-minutes: 5
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
needs: [test, lint]
|
|
18
|
+
if: github.event_name == 'workflow_dispatch'
|
|
19
|
+
env:
|
|
20
|
+
python_version_publish: "3.13"
|
|
21
|
+
steps:
|
|
22
|
+
- name: Checkout
|
|
23
|
+
uses: actions/checkout@v4
|
|
24
|
+
- name: Cache packages
|
|
25
|
+
uses: actions/cache@v4
|
|
26
|
+
with:
|
|
27
|
+
path: ~/.cache
|
|
28
|
+
key: ${{ runner.os }}-python${{ env.python_version_publish }}-pipcache
|
|
29
|
+
- name: Setup Python
|
|
30
|
+
uses: actions/setup-python@v5
|
|
31
|
+
with:
|
|
32
|
+
python-version: ${{ env.python_version_publish }}
|
|
33
|
+
- name: Install denendencies
|
|
34
|
+
run: |
|
|
35
|
+
set -eux
|
|
36
|
+
if ! twine --version
|
|
37
|
+
then
|
|
38
|
+
make publish-installdeps
|
|
39
|
+
fi
|
|
40
|
+
twine --version
|
|
41
|
+
- name: Publish to testpypi
|
|
42
|
+
run: make publish publish_repository=testpypi
|
|
43
|
+
env:
|
|
44
|
+
TWINE_USERNAME: __token__
|
|
45
|
+
TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }}
|
|
46
|
+
- name: Publish to pypi
|
|
47
|
+
if: github.ref_type == 'tag'
|
|
48
|
+
run: make publish publish_repository=pypi
|
|
49
|
+
env:
|
|
50
|
+
TWINE_USERNAME: __token__
|
|
51
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
|
52
|
+
|
|
53
|
+
test:
|
|
54
|
+
timeout-minutes: 5
|
|
55
|
+
strategy:
|
|
56
|
+
matrix:
|
|
57
|
+
# Available versions:
|
|
58
|
+
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
|
|
59
|
+
python-version: ["3.10", "3.11", "3.12", "3.13", "pypy-3.7"]
|
|
60
|
+
runs-on: [ubuntu-latest]
|
|
61
|
+
include:
|
|
62
|
+
- python-version: "3.9"
|
|
63
|
+
runs-on: ubuntu-20.04
|
|
64
|
+
- python-version: "3.8"
|
|
65
|
+
runs-on: ubuntu-20.04
|
|
66
|
+
- python-version: "3.7"
|
|
67
|
+
runs-on: ubuntu-20.04
|
|
68
|
+
- python-version: "3.6"
|
|
69
|
+
runs-on: ubuntu-20.04
|
|
70
|
+
env:
|
|
71
|
+
python_version_codecov: "3.13"
|
|
72
|
+
runs-on: ${{ matrix.runs-on }}
|
|
73
|
+
steps:
|
|
74
|
+
- name: Checkout
|
|
75
|
+
uses: actions/checkout@v4
|
|
76
|
+
- name: Cache packages
|
|
77
|
+
# https://github.com/actions/cache/issues/152
|
|
78
|
+
uses: actions/cache@v4
|
|
79
|
+
with:
|
|
80
|
+
path: ~/.cache
|
|
81
|
+
key: ${{ runner.os }}-python${{ matrix.python-version }}-pipcache
|
|
82
|
+
- name: Setup Python
|
|
83
|
+
uses: actions/setup-python@v5
|
|
84
|
+
with:
|
|
85
|
+
python-version: ${{ matrix.python-version }}
|
|
86
|
+
- name: Install denendencies
|
|
87
|
+
run: |
|
|
88
|
+
set -eux
|
|
89
|
+
pip install . coverage codecov
|
|
90
|
+
- name: Run test
|
|
91
|
+
run: |
|
|
92
|
+
set -eux
|
|
93
|
+
python --version
|
|
94
|
+
flake8 --version
|
|
95
|
+
make test
|
|
96
|
+
- name: Run codecov
|
|
97
|
+
uses: codecov/codecov-action@v4
|
|
98
|
+
if: matrix.python-version == env.python_version_codecov
|
|
99
|
+
|
|
100
|
+
lint:
|
|
101
|
+
timeout-minutes: 5
|
|
102
|
+
runs-on: ubuntu-latest
|
|
103
|
+
env:
|
|
104
|
+
python_version_lint: "3.13"
|
|
105
|
+
steps:
|
|
106
|
+
- name: Checkout
|
|
107
|
+
uses: actions/checkout@v4
|
|
108
|
+
- name: Cache packages
|
|
109
|
+
uses: actions/cache@v4
|
|
110
|
+
with:
|
|
111
|
+
path: ~/.cache
|
|
112
|
+
key: ${{ runner.os }}-python${{ env.python_version_lint }}-pipcache
|
|
113
|
+
- name: Setup Python
|
|
114
|
+
uses: actions/setup-python@v5
|
|
115
|
+
with:
|
|
116
|
+
python-version: ${{ env.python_version_lint }}
|
|
117
|
+
- name: Install denendencies
|
|
118
|
+
run: |
|
|
119
|
+
set -eux
|
|
120
|
+
pip install .[dev]
|
|
121
|
+
- name: Run linter
|
|
122
|
+
run: make lint
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
### Deprecated
|
|
16
|
+
|
|
17
|
+
### Removed
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
### Security
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## [0.3.6] - 2024-11-04
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- Add Python 3.13 support
|
|
30
|
+
|
|
31
|
+
### Removed
|
|
32
|
+
|
|
33
|
+
- Drop Python 3.5 support
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- Fix false positive with class attribute string value and docstring
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## [0.3.5] - 2023-10-22
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
|
|
45
|
+
- Add Python 3.12 support
|
|
46
|
+
|
|
47
|
+
### Removed
|
|
48
|
+
|
|
49
|
+
- Drop support for Python 3.3 & 3.4
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
|
|
53
|
+
- Fix check for f-strings on Python 3.12
|
|
54
|
+
- Prior to this version, this plugin cannot find implicit concats
|
|
55
|
+
when using Python 3.12 and f-strings are involved
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## [0.3.4] - 2022-10-31
|
|
59
|
+
|
|
60
|
+
### Added
|
|
61
|
+
|
|
62
|
+
- Add Python 3.11 to classifier list
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## [0.3.3] - 2021-12-15
|
|
66
|
+
|
|
67
|
+
### Fixed
|
|
68
|
+
|
|
69
|
+
- Remove more-itertools version constraint
|
|
70
|
+
- Because more-itertools 8.11.0 has been yanked
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## [0.3.2] - 2021-11-16
|
|
74
|
+
|
|
75
|
+
### Fixed
|
|
76
|
+
|
|
77
|
+
- Fix error code for bytes literals prefixed with 'rb'
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## [0.3.1] - 2021-10-15
|
|
81
|
+
|
|
82
|
+
### Added
|
|
83
|
+
|
|
84
|
+
- Add Python 3.3 and 3.4 support
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## [0.3.0] - 2021-10-11
|
|
88
|
+
|
|
89
|
+
### Changed
|
|
90
|
+
|
|
91
|
+
- Separate error codes for bytes literal concatenations
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## [0.2.1] - 2021-10-07
|
|
95
|
+
|
|
96
|
+
### Added
|
|
97
|
+
|
|
98
|
+
- Add Python 3.10 support
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## [0.2.0] - 2021-10-01
|
|
102
|
+
|
|
103
|
+
### changed
|
|
104
|
+
|
|
105
|
+
- Remove attrs from dependency list
|
|
106
|
+
- Separate error code for concat over multiple lines
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## [0.1.5] - 2021-09-20
|
|
110
|
+
|
|
111
|
+
### Added
|
|
112
|
+
|
|
113
|
+
- Add Python 3.9 support
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
## [0.1.4] - 2020-08-19
|
|
117
|
+
|
|
118
|
+
### Added
|
|
119
|
+
|
|
120
|
+
- Update documents
|
|
121
|
+
|
|
122
|
+
### changed
|
|
123
|
+
|
|
124
|
+
- Changed package structure
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
## [0.1.3] - 2020-05-25
|
|
128
|
+
|
|
129
|
+
### Added
|
|
130
|
+
|
|
131
|
+
- Update documents and metadata
|
|
132
|
+
|
|
133
|
+
## [0.1.2] - 2020-05-21
|
|
134
|
+
|
|
135
|
+
### Fixed
|
|
136
|
+
|
|
137
|
+
- Fix License in setup.cfg
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
## [0.1.1] - 2020-05-20
|
|
141
|
+
|
|
142
|
+
### Added
|
|
143
|
+
|
|
144
|
+
- Update README
|
|
145
|
+
|
|
146
|
+
### Fixed
|
|
147
|
+
|
|
148
|
+
- Fix License classifier
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## [0.1.0] - 2020-05-18
|
|
152
|
+
|
|
153
|
+
### Added
|
|
154
|
+
|
|
155
|
+
- Update README
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## 0.0.1 - 2020-05-17
|
|
159
|
+
|
|
160
|
+
- First release
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
[unreleased]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.3.6...HEAD
|
|
164
|
+
[0.3.6]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.3.5...v0.3.6
|
|
165
|
+
[0.3.5]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.3.4...v0.3.5
|
|
166
|
+
[0.3.4]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.3.3...v0.3.4
|
|
167
|
+
[0.3.3]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.3.2...v0.3.3
|
|
168
|
+
[0.3.2]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.3.1...v0.3.2
|
|
169
|
+
[0.3.1]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.3.0...v0.3.1
|
|
170
|
+
[0.3.0]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.2.1...v0.3.0
|
|
171
|
+
[0.2.1]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.2.0...v0.2.1
|
|
172
|
+
[0.2.0]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.1.5...v0.2.0
|
|
173
|
+
[0.1.5]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.1.4...v0.1.5
|
|
174
|
+
[0.1.4]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.1.3...v0.1.4
|
|
175
|
+
[0.1.3]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.1.2...v0.1.3
|
|
176
|
+
[0.1.2]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.1.1...v0.1.2
|
|
177
|
+
[0.1.1]: https://github.com/10sr/flake8-no-implicit-concat/compare/v0.1.0...v0.1.1
|
|
178
|
+
[0.1.0]: https://github.com/10sr/flake8-no-implicit-concat/releases/tag/v0.1.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
check: test lint
|
|
1
|
+
check: test lint
|
|
2
2
|
|
|
3
3
|
test: test-runflake8 test-pytest
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ test-runflake8:
|
|
|
9
9
|
test-pytest:
|
|
10
10
|
coverage erase
|
|
11
11
|
coverage run -m unittest discover -v # tests/test_*.py
|
|
12
|
-
coverage xml
|
|
12
|
+
coverage xml
|
|
13
13
|
|
|
14
14
|
codecov:
|
|
15
15
|
codecov
|
|
@@ -39,11 +39,11 @@ sdist:
|
|
|
39
39
|
wheel:
|
|
40
40
|
python setup.py bdist_wheel
|
|
41
41
|
|
|
42
|
-
publish_repository ?= testpypi
|
|
42
|
+
publish_repository ?= testpypi # Set to pypi to publish as production
|
|
43
43
|
publish: sdist wheel
|
|
44
|
-
twine upload --repository $(publish_repository) dist/*
|
|
44
|
+
twine upload --skip-existing --verbose --repository $(publish_repository) dist/*
|
|
45
45
|
|
|
46
46
|
# Do not add to devdependencies because different platforms install
|
|
47
47
|
# different packages
|
|
48
48
|
publish-installdeps:
|
|
49
|
-
pip install twine wheel
|
|
49
|
+
pip install twine wheel setuptools
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: flake8-no-implicit-concat
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.6
|
|
4
4
|
Summary: Flake8 plugin that forbids implicit str/bytes literal concatenations
|
|
5
5
|
Home-page: https://github.com/10sr/flake8-no-implicit-concat
|
|
6
6
|
Author: 10sr
|
|
@@ -17,28 +17,44 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
17
17
|
Classifier: Operating System :: OS Independent
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.3
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.4
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.5
|
|
23
20
|
Classifier: Programming Language :: Python :: 3.6
|
|
24
21
|
Classifier: Programming Language :: Python :: 3.7
|
|
25
22
|
Classifier: Programming Language :: Python :: 3.8
|
|
26
23
|
Classifier: Programming Language :: Python :: 3.9
|
|
27
24
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
25
|
Classifier: Programming Language :: Python :: 3.11
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
30
28
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
31
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
32
30
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
33
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.6
|
|
34
32
|
Description-Content-Type: text/markdown
|
|
35
|
-
Provides-Extra: dev
|
|
36
33
|
License-File: LICENSE
|
|
34
|
+
Requires-Dist: flake8
|
|
35
|
+
Requires-Dist: more-itertools; python_version < "3.10"
|
|
36
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: black; extra == "dev"
|
|
38
|
+
Requires-Dist: isort; extra == "dev"
|
|
39
|
+
Requires-Dist: flake8; extra == "dev"
|
|
40
|
+
Requires-Dist: hacking>=4; extra == "dev"
|
|
41
|
+
Requires-Dist: flake8-black; extra == "dev"
|
|
42
|
+
Requires-Dist: flake8-isort; extra == "dev"
|
|
43
|
+
Requires-Dist: pep8-naming; extra == "dev"
|
|
44
|
+
Requires-Dist: flake8-broken-line; extra == "dev"
|
|
45
|
+
Requires-Dist: flake8-builtins; extra == "dev"
|
|
46
|
+
Requires-Dist: flake8-2020; extra == "dev"
|
|
47
|
+
Requires-Dist: flake8-docstrings; extra == "dev"
|
|
48
|
+
Requires-Dist: flake8-rst-docstrings; extra == "dev"
|
|
49
|
+
Requires-Dist: darglint; extra == "dev"
|
|
50
|
+
Requires-Dist: mypy; extra == "dev"
|
|
51
|
+
Requires-Dist: coverage; extra == "dev"
|
|
52
|
+
Requires-Dist: codecov; extra == "dev"
|
|
37
53
|
|
|
38
54
|
[](https://badge.fury.io/py/flake8-no-implicit-concat)
|
|
39
55
|

|
|
40
56
|
[](https://pepy.tech/project/flake8-no-implicit-concat)
|
|
41
|
-
[](https://github.com/10sr/flake8-no-implicit-concat/actions/workflows/build.yaml)
|
|
42
58
|
[](https://codecov.io/gh/10sr/flake8-no-implicit-concat)
|
|
43
59
|
|
|
44
60
|
|
|
@@ -48,7 +64,7 @@ flake8-no-implicit-concat
|
|
|
48
64
|
|
|
49
65
|
[Flake8][] plugin that forbids implicit str/bytes literal concatenations.
|
|
50
66
|
|
|
51
|
-
#
|
|
67
|
+
# Not Allowed
|
|
52
68
|
print('foo' 'bar', 'baz')
|
|
53
69
|
a = ["aaa",
|
|
54
70
|
"bbb"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](https://badge.fury.io/py/flake8-no-implicit-concat)
|
|
2
2
|

|
|
3
3
|
[](https://pepy.tech/project/flake8-no-implicit-concat)
|
|
4
|
-
[](https://github.com/10sr/flake8-no-implicit-concat/actions/workflows/build.yaml)
|
|
5
5
|
[](https://codecov.io/gh/10sr/flake8-no-implicit-concat)
|
|
6
6
|
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ flake8-no-implicit-concat
|
|
|
11
11
|
|
|
12
12
|
[Flake8][] plugin that forbids implicit str/bytes literal concatenations.
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Not Allowed
|
|
15
15
|
print('foo' 'bar', 'baz')
|
|
16
16
|
a = ["aaa",
|
|
17
17
|
"bbb"
|
|
@@ -12,7 +12,10 @@ if sys.version_info < (3, 10): # pragma: no cover
|
|
|
12
12
|
else:
|
|
13
13
|
from itertools import pairwise
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
try:
|
|
16
|
+
from ._version import __version__
|
|
17
|
+
except ImportError:
|
|
18
|
+
__version__ = "N/A"
|
|
16
19
|
|
|
17
20
|
_ERROR = Tuple[int, int, str, None]
|
|
18
21
|
|
|
@@ -29,6 +32,27 @@ _ERROR_CODES = { # [on_one_line][is_bytes]
|
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
|
|
35
|
+
def _is_ok_lt_py312(a: tokenize.TokenInfo, b: tokenize.TokenInfo) -> bool:
|
|
36
|
+
return not a.type == b.type == tokenize.STRING
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def _is_ok(a: tokenize.TokenInfo, b: tokenize.TokenInfo) -> bool:
|
|
40
|
+
if a.type == b.type == tokenize.STRING:
|
|
41
|
+
return False
|
|
42
|
+
if a.type == tokenize.STRING and b.type == tokenize.FSTRING_START:
|
|
43
|
+
return False
|
|
44
|
+
if a.type == tokenize.FSTRING_END and b.type == tokenize.STRING:
|
|
45
|
+
return False
|
|
46
|
+
if a.type == tokenize.FSTRING_END and b.type == tokenize.FSTRING_START:
|
|
47
|
+
return False
|
|
48
|
+
return True
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
if sys.version_info < (3, 12): # pragma: no cover
|
|
52
|
+
# E811 redefinition of unused '_is_ok' from line 36
|
|
53
|
+
_is_ok = _is_ok_lt_py312 # noqa
|
|
54
|
+
|
|
55
|
+
|
|
32
56
|
def _check(tokens: Iterable[tokenize.TokenInfo]) -> Iterable[_ERROR]:
|
|
33
57
|
tokens_wo_ws = (
|
|
34
58
|
e
|
|
@@ -36,14 +60,13 @@ def _check(tokens: Iterable[tokenize.TokenInfo]) -> Iterable[_ERROR]:
|
|
|
36
60
|
if e.type
|
|
37
61
|
not in (
|
|
38
62
|
tokenize.NL,
|
|
39
|
-
tokenize.NEWLINE,
|
|
40
63
|
tokenize.INDENT,
|
|
41
64
|
tokenize.DEDENT,
|
|
42
65
|
tokenize.COMMENT,
|
|
43
66
|
)
|
|
44
67
|
)
|
|
45
|
-
for
|
|
46
|
-
if
|
|
68
|
+
for a, b in pairwise(tokens_wo_ws):
|
|
69
|
+
if _is_ok(a, b):
|
|
47
70
|
continue
|
|
48
71
|
|
|
49
72
|
on_one_line = a.end[0] == b.start[0]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# file generated by setuptools_scm
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
TYPE_CHECKING = False
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from typing import Tuple, Union
|
|
6
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
7
|
+
else:
|
|
8
|
+
VERSION_TUPLE = object
|
|
9
|
+
|
|
10
|
+
version: str
|
|
11
|
+
__version__: str
|
|
12
|
+
__version_tuple__: VERSION_TUPLE
|
|
13
|
+
version_tuple: VERSION_TUPLE
|
|
14
|
+
|
|
15
|
+
__version__ = version = '0.3.6'
|
|
16
|
+
__version_tuple__ = version_tuple = (0, 3, 6)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: flake8-no-implicit-concat
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.6
|
|
4
4
|
Summary: Flake8 plugin that forbids implicit str/bytes literal concatenations
|
|
5
5
|
Home-page: https://github.com/10sr/flake8-no-implicit-concat
|
|
6
6
|
Author: 10sr
|
|
@@ -17,28 +17,44 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
17
17
|
Classifier: Operating System :: OS Independent
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.3
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.4
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.5
|
|
23
20
|
Classifier: Programming Language :: Python :: 3.6
|
|
24
21
|
Classifier: Programming Language :: Python :: 3.7
|
|
25
22
|
Classifier: Programming Language :: Python :: 3.8
|
|
26
23
|
Classifier: Programming Language :: Python :: 3.9
|
|
27
24
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
25
|
Classifier: Programming Language :: Python :: 3.11
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
30
28
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
31
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
32
30
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
33
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.6
|
|
34
32
|
Description-Content-Type: text/markdown
|
|
35
|
-
Provides-Extra: dev
|
|
36
33
|
License-File: LICENSE
|
|
34
|
+
Requires-Dist: flake8
|
|
35
|
+
Requires-Dist: more-itertools; python_version < "3.10"
|
|
36
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: black; extra == "dev"
|
|
38
|
+
Requires-Dist: isort; extra == "dev"
|
|
39
|
+
Requires-Dist: flake8; extra == "dev"
|
|
40
|
+
Requires-Dist: hacking>=4; extra == "dev"
|
|
41
|
+
Requires-Dist: flake8-black; extra == "dev"
|
|
42
|
+
Requires-Dist: flake8-isort; extra == "dev"
|
|
43
|
+
Requires-Dist: pep8-naming; extra == "dev"
|
|
44
|
+
Requires-Dist: flake8-broken-line; extra == "dev"
|
|
45
|
+
Requires-Dist: flake8-builtins; extra == "dev"
|
|
46
|
+
Requires-Dist: flake8-2020; extra == "dev"
|
|
47
|
+
Requires-Dist: flake8-docstrings; extra == "dev"
|
|
48
|
+
Requires-Dist: flake8-rst-docstrings; extra == "dev"
|
|
49
|
+
Requires-Dist: darglint; extra == "dev"
|
|
50
|
+
Requires-Dist: mypy; extra == "dev"
|
|
51
|
+
Requires-Dist: coverage; extra == "dev"
|
|
52
|
+
Requires-Dist: codecov; extra == "dev"
|
|
37
53
|
|
|
38
54
|
[](https://badge.fury.io/py/flake8-no-implicit-concat)
|
|
39
55
|

|
|
40
56
|
[](https://pepy.tech/project/flake8-no-implicit-concat)
|
|
41
|
-
[](https://github.com/10sr/flake8-no-implicit-concat/actions/workflows/build.yaml)
|
|
42
58
|
[](https://codecov.io/gh/10sr/flake8-no-implicit-concat)
|
|
43
59
|
|
|
44
60
|
|
|
@@ -48,7 +64,7 @@ flake8-no-implicit-concat
|
|
|
48
64
|
|
|
49
65
|
[Flake8][] plugin that forbids implicit str/bytes literal concatenations.
|
|
50
66
|
|
|
51
|
-
#
|
|
67
|
+
# Not Allowed
|
|
52
68
|
print('foo' 'bar', 'baz')
|
|
53
69
|
a = ["aaa",
|
|
54
70
|
"bbb"
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
.codecov.yaml
|
|
2
|
+
.editorconfig
|
|
3
|
+
.gitignore
|
|
4
|
+
CHANGELOG.md
|
|
1
5
|
LICENSE
|
|
2
6
|
MANIFEST.in
|
|
3
7
|
Makefile
|
|
@@ -5,6 +9,8 @@ README.md
|
|
|
5
9
|
pyproject.toml
|
|
6
10
|
setup.cfg
|
|
7
11
|
setup.py
|
|
12
|
+
.github/dependabot.yml
|
|
13
|
+
.github/workflows/build.yaml
|
|
8
14
|
flake8_no_implicit_concat/__init__.py
|
|
9
15
|
flake8_no_implicit_concat/_version.py
|
|
10
16
|
flake8_no_implicit_concat.egg-info/PKG-INFO
|
|
@@ -23,6 +29,8 @@ tests/run_flake8/blanklines.py
|
|
|
23
29
|
tests/run_flake8/blanklines.py.expected
|
|
24
30
|
tests/run_flake8/bytes.py
|
|
25
31
|
tests/run_flake8/bytes.py.expected
|
|
32
|
+
tests/run_flake8/classdoc.py
|
|
33
|
+
tests/run_flake8/classdoc.py.expected
|
|
26
34
|
tests/run_flake8/comment.py
|
|
27
35
|
tests/run_flake8/comment.py.expected
|
|
28
36
|
tests/run_flake8/fstring.py
|
|
@@ -20,27 +20,27 @@ classifiers =
|
|
|
20
20
|
Operating System :: OS Independent
|
|
21
21
|
Programming Language :: Python :: 3
|
|
22
22
|
Programming Language :: Python :: 3 :: Only
|
|
23
|
-
Programming Language :: Python :: 3.3
|
|
24
|
-
Programming Language :: Python :: 3.4
|
|
25
|
-
Programming Language :: Python :: 3.5
|
|
26
23
|
Programming Language :: Python :: 3.6
|
|
27
24
|
Programming Language :: Python :: 3.7
|
|
28
25
|
Programming Language :: Python :: 3.8
|
|
29
26
|
Programming Language :: Python :: 3.9
|
|
30
27
|
Programming Language :: Python :: 3.10
|
|
31
28
|
Programming Language :: Python :: 3.11
|
|
29
|
+
Programming Language :: Python :: 3.12
|
|
32
30
|
Programming Language :: Python :: Implementation :: CPython
|
|
33
31
|
Programming Language :: Python :: Implementation :: PyPy
|
|
34
32
|
Topic :: Software Development :: Libraries :: Python Modules
|
|
35
33
|
Topic :: Software Development :: Quality Assurance
|
|
36
34
|
|
|
37
35
|
[options]
|
|
38
|
-
python_requires = >=3.
|
|
36
|
+
python_requires = >=3.6
|
|
39
37
|
packages = find:
|
|
40
38
|
install_requires =
|
|
41
39
|
flake8
|
|
42
40
|
more-itertools; python_version<"3.10"
|
|
43
|
-
|
|
41
|
+
setup_requires =
|
|
42
|
+
wheel
|
|
43
|
+
setuptools_scm>=6.0
|
|
44
44
|
|
|
45
45
|
[options.entry_points]
|
|
46
46
|
flake8.extension =
|
|
@@ -85,8 +85,8 @@ ignore_errors = True
|
|
|
85
85
|
|
|
86
86
|
[flake8]
|
|
87
87
|
extend-ignore =
|
|
88
|
-
E203,
|
|
89
|
-
E501,
|
|
88
|
+
E203,
|
|
89
|
+
E501,
|
|
90
90
|
exclude =
|
|
91
91
|
.git,
|
|
92
92
|
__pycache__,
|
|
@@ -95,6 +95,7 @@ exclude =
|
|
|
95
95
|
docs,
|
|
96
96
|
build,
|
|
97
97
|
tests/run_flake8,
|
|
98
|
+
flake8_no_implicit_concat/_version.py,
|
|
98
99
|
|
|
99
100
|
[isort]
|
|
100
101
|
force_single_line = true
|
|
@@ -105,7 +106,7 @@ lines_between_types = 1
|
|
|
105
106
|
docstring_style = sphinx
|
|
106
107
|
|
|
107
108
|
[mypy]
|
|
108
|
-
python_version = 3.
|
|
109
|
+
python_version = 3.12
|
|
109
110
|
platform = linux
|
|
110
111
|
follow_imports = normal
|
|
111
112
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
|
|
3
|
+
"""Setup script."""
|
|
4
|
+
|
|
5
|
+
from setuptools import setup
|
|
6
|
+
|
|
7
|
+
setup(
|
|
8
|
+
# Python3.6 requires scm configs to be here
|
|
9
|
+
use_scm_version={
|
|
10
|
+
"write_to": "flake8_no_implicit_concat/_version.py",
|
|
11
|
+
"local_scheme": "no-local-version",
|
|
12
|
+
}
|
|
13
|
+
)
|
|
File without changes
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
|
|
3
|
-
"""Setup script."""
|
|
4
|
-
|
|
5
|
-
from setuptools import setup
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def _get_version() -> str:
|
|
9
|
-
with open("flake8_no_implicit_concat/_version.py") as f:
|
|
10
|
-
for line in f:
|
|
11
|
-
if line.startswith("__version__"):
|
|
12
|
-
delim = '"' if '"' in line else "'"
|
|
13
|
-
return line.split(delim)[1]
|
|
14
|
-
raise RuntimeError("Unable to find version string.")
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
setup(version=_get_version())
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
./fstring.py:2:17: NIC002 Implicitly concatenated str literals over multiple lines
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
{flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/backslash.py
RENAMED
|
File without changes
|
|
File without changes
|
{flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/blanklines.py
RENAMED
|
File without changes
|
|
File without changes
|
{flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/bytes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/comment.py
RENAMED
|
File without changes
|
|
File without changes
|
{flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/multiline.py
RENAMED
|
File without changes
|
|
File without changes
|
{flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/noerror.py
RENAMED
|
File without changes
|
{flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/oneline.py
RENAMED
|
File without changes
|
|
File without changes
|
{flake8-no-implicit-concat-0.3.4 → flake8_no_implicit_concat-0.3.6}/tests/run_flake8/triplequote.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|