-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MNT: switch to pyproject.toml, flake8 -> ruff
- Loading branch information
Showing
9 changed files
with
67 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.0.0 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.1.8 | ||
hooks: | ||
- id: flake8 | ||
- repo: local | ||
hooks: | ||
- id: flake8-line-length | ||
name: Flake8 line length | ||
entry: python ./scripts/flake8_line_length.py | ||
language: python | ||
# Run the linter. | ||
- id: ruff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[project] | ||
dynamic = ["version"] | ||
|
||
name = "fastf1" | ||
authors = [ | ||
{email = "[email protected]"}, | ||
{name = "Philipp Schaefer"} | ||
] | ||
description = "Python package for accessing and analyzing Formula 1 results, schedules, timing data and telemetry." | ||
readme = "README.md" | ||
|
||
license = { file = "LICENSE" } | ||
|
||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"matplotlib>=3.4.2,<4.0.0", | ||
"numpy>=1.20.3,<2.0.0", | ||
"pandas>=1.2.4,<2.1.0", | ||
"python-dateutil", | ||
"requests>=2.28.0", | ||
"requests-cache>=0.8.0", | ||
"scipy>=1.6.3,<2.0.0", | ||
"thefuzz", | ||
"timple>=0.1.6", | ||
"websockets>=8.1", | ||
] | ||
|
||
[project.urls] | ||
"Source Code" = "https://github.com/theOehrly/Fast-F1" | ||
"Documentation" = "https://docs.fastf1.dev" | ||
|
||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
|
||
[tool.ruff] | ||
line-length = 79 | ||
select = [ | ||
# "D", TODO: select and fix docstrings | ||
"E", | ||
"F", | ||
"W", | ||
] | ||
exclude = [ | ||
"scripts", | ||
"fastf1/tests", | ||
"fastf1/testing", | ||
"fastf1/signalr_aio", | ||
] | ||
|
||
[tool.ruff.per-file-ignores] | ||
"fastf1/_api.py" = ["E501"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.