Skip to content

Commit

Permalink
3.12 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Jan 10, 2024
1 parent 9febe97 commit 6ee0649
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
24 changes: 9 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace

Expand All @@ -14,23 +19,12 @@ repos:
- id: ruff
# - id: ruff-format

- repo: https://github.com/PyCQA/flake8
rev: '6.1.0'
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==23.9.16
- flake8-comprehensions==3.14.0
- flake8-pytest-style==1.7.2
- pep8-naming==0.13.3
- id: rst-backticks

- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ That way the users can have some guidance how to change the program behaviour.
It's possible to use environment variable or files for expansion. Easyconfig will load all values

# Changelog
#### 0.3.2 (2024-01-10)
- Updated CI and code linters

#### 0.3.1 (2023-11-10)
- Updated dependencies and code linters

Expand Down
2 changes: 1 addition & 1 deletion src/easyconfig/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.1'
__version__ = '0.3.2'
2 changes: 2 additions & 0 deletions tests/helper/my_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class Path(_path_type):
if version_info < (3, 12):

_flavour = _path_type._flavour

def __init__(self, *args, does_exist: bool = True, initial_value: Optional[str] = None, **kwargs):
Expand All @@ -33,6 +34,7 @@ def __new__(cls, *args, **kwargs):
return super().__new__(cls, *args)

else:

def __init__(self, *args, does_exist: bool = True, initial_value: Optional[str] = None, **kwargs):
super().__init__(*args)
# Own Path implementation
Expand Down

0 comments on commit 6ee0649

Please sign in to comment.