Skip to content

Commit

Permalink
Use ruff instead of flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Oct 13, 2022
1 parent 69a4764 commit b853bb3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Expand Up @@ -18,10 +18,10 @@ repos:
args:
- --py37-plus

- repo: https://github.com/pycqa/flake8
rev: "5.0.4"
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.69
hooks:
- id: flake8
- id: lint

- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
Expand Down
29 changes: 11 additions & 18 deletions pyproject.toml
Expand Up @@ -5,22 +5,19 @@ build-backend = "setuptools.build_meta"
[project]
name = "autoflake"
description = "Removes unused imports and unused variables"
license = {text = "MIT"}
license = { text = "MIT" }
classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Quality Assurance",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Quality Assurance",
]
keywords = ["clean", "fix", "automatic", "unused", "import"]
urls = {Homepage = "https://www.github.com/PyCQA/autoflake"}
urls = { Homepage = "https://www.github.com/PyCQA/autoflake" }
requires-python = ">=3.7"
dependencies = [
"pyflakes>=1.1.0",
"tomli>=2.0.1;python_version<'3.11'",
]
dependencies = ["pyflakes>=1.1.0", "tomli>=2.0.1;python_version<'3.11'"]
dynamic = ["version"]

[project.readme]
Expand All @@ -36,14 +33,10 @@ license-files = ["LICENSE"]
include-package-data = false

[tool.setuptools.packages]
find = {namespaces = false}
find = { namespaces = false }

[tool.setuptools.dynamic]
version = {attr = "autoflake.__version__"}
version = { attr = "autoflake.__version__" }

[tool.distutils.bdist_wheel]
universal = 1

[tool.flake8]
ignore = "E203,W503"
max-line-length = "88"

0 comments on commit b853bb3

Please sign in to comment.