python-linters 0.1.1__tar.gz → 0.1.2__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Tilo Himmelsbach
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-linters
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: bundling config files for linters like ruff and flake8
5
5
  Home-page: https://github.com/dertilo/python-linters
6
6
  Author: Tilo Himmelsbach
@@ -19,6 +19,9 @@ Requires-Dist: wemake-python-styleguide (>=0.18.0,<0.19.0)
19
19
  Project-URL: Repository, https://github.com/dertilo/python-linters
20
20
  Description-Content-Type: text/markdown
21
21
 
22
+ ![pypi](https://github.com/dertilo/python-linters/actions/workflows/release.yml/badge.svg)
23
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
24
+ [![bear-ified](https://raw.githubusercontent.com/beartype/beartype-assets/main/badge/bear-ified.svg)](https://beartype.readthedocs.io)
22
25
  # python-linters
23
26
  - bundles flake8, black, isort, ruff into a single poetry-script
24
27
  - project independent linter configuration (via `ruff.toml`,`.flake8`) -> one config to rule them all
@@ -1,3 +1,6 @@
1
+ ![pypi](https://github.com/dertilo/python-linters/actions/workflows/release.yml/badge.svg)
2
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
3
+ [![bear-ified](https://raw.githubusercontent.com/beartype/beartype-assets/main/badge/bear-ified.svg)](https://beartype.readthedocs.io)
1
4
  # python-linters
2
5
  - bundles flake8, black, isort, ruff into a single poetry-script
3
6
  - project independent linter configuration (via `ruff.toml`,`.flake8`) -> one config to rule them all
@@ -1,10 +1,9 @@
1
1
  [tool.poetry]
2
2
  name = "python-linters"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "bundling config files for linters like ruff and flake8"
5
5
  authors = ["Tilo Himmelsbach <dertilo@gmail.com>"]
6
6
  readme = "README.md"
7
- homepage = "https://github.com/dertilo/python-linters"
8
7
  repository = "https://github.com/dertilo/python-linters"
9
8
  packages = [{ include = "python_linters" }]
10
9
 
@@ -1,4 +1,6 @@
1
1
  target-version = "py310"
2
+ [lint.isort]
3
+ profile = "black"
2
4
  # Exclude a variety of commonly ignored directories. see https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
3
5
  [lint]
4
6
  exclude = [
@@ -110,10 +112,12 @@ ignore = [
110
112
  "RET505", # encurages bad practice of ommitting the "else"-clause
111
113
  "RUF100", # RUF100 unused-noqa: ruff does not know about flake8 codes
112
114
  "UP008", # see: https://stackoverflow.com/questions/73268995/typeerror-when-calling-super-in-dataclassslots-true-subclass
115
+ "RET506", # looks like a false-positive
116
+ "SLF001", # everybody knows about the _-conventin, if one still accesses "protected" attributes one has their reasons!
113
117
  ]
114
118
 
115
119
  [lint.mccabe]
116
- # Flag errors (`C901`) whenever the complexity level exceeds 5.
120
+ # Flag errors (`C901`) whenever the complexity level exceeds some threshold.
117
121
  # ruffs default is 10
118
122
  # PyCQA default seems to be 7: https://github.com/PyCQA/mccabe/blob/60cf21c21f8e5880f9907561c53732e80d1be400/mccabe.py#L273
119
123
  # flake8's default is 10: https://flake8.pycqa.org/en/2.5.5/