Skip to content

Commit eb676bf

Browse files
author
Antoine DECHAUME
committed
Update dev stuff
1 parent b058800 commit eb676bf

File tree

14 files changed

+113
-85
lines changed

14 files changed

+113
-85
lines changed

.github/workflows/tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
os: [ubuntu-latest, macos-latest]
2121
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424
- name: Setup Python
25-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v4
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828
- name: Install tox
@@ -31,7 +31,7 @@ jobs:
3131
# Run tox using the version of Python in `PATH`.
3232
run: tox -e py-coverage
3333
- name: Upload coverage to Codecov
34-
uses: codecov/codecov-action@v2
34+
uses: codecov/codecov-action@v3
3535
with:
3636
files: ./coverage.xml
3737
verbose: true

.pre-commit-config.yaml

+28-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
repos:
22

33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.3.0
4+
rev: v4.4.0
55
hooks:
6-
- id: trailing-whitespace
7-
- id: end-of-file-fixer
8-
exclude: LICENSES/headers
9-
- id: check-added-large-files
10-
- id: check-toml
11-
- id: destroyed-symlinks
12-
- id: check-symlinks
6+
- id: trailing-whitespace
7+
- id: end-of-file-fixer
8+
- id: check-yaml
9+
- id: check-added-large-files
10+
- id: check-json
11+
- id: check-toml
12+
- id: destroyed-symlinks
13+
- id: check-symlinks
1314

1415
- repo: https://github.com/pre-commit/pygrep-hooks
15-
rev: v1.9.0
16+
rev: v1.10.0
1617
hooks:
1718
- id: rst-backticks
1819
- id: rst-directive-colons
1920
- id: rst-inline-touching-normal
2021

2122
- repo: https://github.com/PyCQA/autoflake
22-
rev: v1.7.6
23+
rev: v2.0.0
2324
hooks:
2425
- id: autoflake
2526
args: [
@@ -50,49 +51,54 @@ repos:
5051
]
5152

5253
- repo: https://github.com/myint/docformatter
53-
rev: v1.5.0
54+
rev: v1.6.0.rc1
5455
hooks:
5556
- id: docformatter
5657
exclude: ^tests/.*$
5758
args: [
5859
--in-place,
5960
--wrap-summaries,
60-
"88",
61+
"89",
6162
--wrap-descriptions,
62-
"88",
63+
"89",
6364
]
6465

6566
- repo: https://github.com/asottile/pyupgrade
66-
rev: v3.2.0
67+
rev: v3.3.1
6768
hooks:
6869
- id: pyupgrade
6970
args: [--py37-plus]
7071

7172
- repo: https://github.com/psf/black
72-
rev: 22.10.0
73+
rev: 22.12.0
7374
hooks:
7475
- id: black
7576

7677
- repo: https://github.com/PyCQA/flake8
77-
rev: 5.0.4
78+
rev: 6.0.0
7879
hooks:
7980
- id: flake8
8081
additional_dependencies:
81-
- flake8-bugbear==22.10.27
82-
- flake8-docstrings==1.6.0
83-
- flake8-print==4.0.0
84-
- pep8-naming==0.12.1
82+
- flake8-bugbear==22.12.6
83+
- flake8-docstrings==1.6.0
84+
- flake8-logging-format==0.9.0
85+
- flake8-print==5.0.0
86+
- pep8-naming==0.13.3
8587

8688
- repo: https://github.com/pre-commit/mirrors-mypy
87-
rev: v0.982
89+
rev: v0.991
8890
hooks:
8991
- id: mypy
92+
exclude: ^(report-conf|tests|doc)
9093
additional_dependencies:
9194
- types-dataclasses
9295
- types-PyYAML
96+
- types-jsonschema
97+
- pytest
98+
- types-pytest-lazy-fixture
9399

94100
- repo: https://github.com/Lucas-C/pre-commit-hooks
95-
rev: v1.3.1
101+
rev: v1.4.0
96102
hooks:
97103
- id: insert-license
98104
name: insert apache license

LICENSES/headers/apache.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Unless required by applicable law or agreed to in writing, software
1313
distributed under the License is distributed on an "AS IS" BASIS,
1414
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515
See the License for the specific language governing permissions and
16-
limitations under the License.
16+
limitations under the License.

NOTICE

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ The BSD License
2626
The following components are provided under the BSD License
2727
(https://opensource.org/licenses/bsd-license.php)
2828

29-
https://palletsprojects.com/p/jinja
29+
https://palletsprojects.com/p/jinja

report-conf/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def setup(app):
197197
# Bibliographic Dublin Core info.
198198
epub_title = project
199199

200-
# The unique identifier of the text. This can be a ISBN number
200+
# The unique identifier of the text. This can be a ISBN.
201201
# or the project homepage.
202202
#
203203
# epub_identifier = ''

setup.cfg

+6-18
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,14 @@ ignore =
8080
E501,
8181
exclude = tests/data
8282
max-line-length = 88
83-
select = B,C,E,F,G,N,T,W,B950
83+
select = B,C,D,E,F,G,N,T,W,B950
8484
docstring-convention = google
85+
per-file-ignores =
86+
conf.py:D
87+
tests/**/*.py:D
8588

8689
[mypy]
87-
;files = src/pytest_executable, tests
88-
;exclude = (tests/data|report-conf)
89-
python_version = 3.7
90-
warn_unused_configs = True
91-
disallow_subclassing_any = True
92-
disallow_any_generics = True
93-
disallow_untyped_calls = True
94-
# disallow_untyped_defs = True
95-
disallow_incomplete_defs = True
96-
# check_untyped_defs = True
97-
disallow_untyped_decorators = True
98-
no_implicit_optional = True
99-
warn_redundant_casts = True
100-
warn_unused_ignores = True
101-
# warn_return_any = True
102-
no_implicit_reexport = True
90+
strict = True
10391

104-
[mypy-numpy,pytest,_pytest.*,py,setuptools,jsonschema,delta]
92+
[mypy-delta]
10593
ignore_missing_imports = True

src/pytest_executable/file_tools.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,20 @@ def _shallow_dir_copy(
159159
"""Shallow copy a directory tree.
160160
161161
Directories are duplicated, files are symlinked. The destination directory
162-
shall not exists and will be created.
162+
shall not exist and will be created.
163163
164164
Args:
165165
src_dir: Path to the source directory.
166166
dst_dir: Path to the destination directory.
167+
ignored_files: Files to be ignored.
167168
"""
168169
dst_dir.mkdir(parents=True, exist_ok=True)
169170
for src_entry in src_dir.iterdir():
170171
dst_entry = dst_dir / src_entry.name
171172
if src_entry.name in ignored_files:
172173
pass
173174
elif src_entry.is_dir():
174-
# directories are not symlinked but created so we can not modify a
175+
# directories are not symlinked but created such that we can not modify a
175176
# child file by accident
176177
_shallow_dir_copy(src_entry, dst_entry, ignored_files)
177178
else:

0 commit comments

Comments
 (0)